llvm.org GIT mirror llvm / d863b76
convert to filecheck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95608 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=arm -stats |& \
1 ; RUN: grep {3 .*Number of machine instrs printed}
0 ; RUN: llc < %s -march=arm | FileCheck %s
21
32 ;; Integer absolute value, should produce something as good as: ARM:
43 ;; add r3, r0, r0, asr #31
109 %b = icmp sgt i32 %a, -1
1110 %abs = select i1 %b, i32 %a, i32 %tmp1neg
1211 ret i32 %abs
12 ; CHECK: add r1, r0, r0, asr #31
13 ; CHECK: eor r0, r1, r0, asr #31
14 ; CHECK: bx lr
1315 }
14