1 ; RUN: llc < %s -mtriple=thumb-unknown-unknown -filetype=obj -o %t.o
2 ; RUN: llvm-objdump -disassemble -arch-name=thumb %t.o | FileCheck %s
4 define i32 @test(i32 %a) {
5 %tmp1neg = sub i32 0, %a
6 %b = icmp sgt i32 %a, -1
7 %abs = select i1 %b, i32 %a, i32 %tmp1neg
10 ; This test just checks that 4 instructions were emitted