1 ; RUN: llvm-as < %s | llc -march=arm -stats |& \
2 ; RUN: grep {3 .*Number of machine instrs printed}
3 ; RUN: llvm-as < %s | llc -march=thumb -stats |& \
4 ; RUN: grep {4 .*Number of machine instrs printed}
6 ;; Integer absolute value, should produce something as good as: ARM:
7 ;; add r3, r0, r0, asr #31
8 ;; eor r0, r3, r0, asr #31
16 define i32 @test(i32 %a) {
17 %tmp1neg = sub i32 0, %a
18 %b = icmp sgt i32 %a, -1
19 %abs = select i1 %b, i32 %a, i32 %tmp1neg