934e37713d710b62e883ba7195dc4cab47f14aa4
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-rsb.ll
1 ; XFAIL: *
2 ; this will match as "sub" until we get register shifting
3
4 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {rsb\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\]*} | count 1
5
6 define i32 @f1(i32 %a, i32 %b) {
7     %tmp = sub i32 %b, %a
8     ret i32 %tmp
9 }