view test/CodeGen/Thumb2/thumb2-lsr.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 54457678186b
children
line wrap: on
line source

; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s

define i32 @f1(i32 %a) {
; CHECK-LABEL: f1:
; CHECK: lsrs r0, r0, #13
    %tmp = lshr i32 %a, 13
    ret i32 %tmp
}