blob: 934e37713d710b62e883ba7195dc4cab47f14aa4 [file] [log] [blame]
David Goodwin2634e982009-06-26 18:10:30 +00001; XFAIL: *
2; this will match as "sub" until we get register shifting
3
Daniel Dunbard2deed02009-06-26 18:35:07 +00004; 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
David Goodwin2634e982009-06-26 18:10:30 +00005
6define i32 @f1(i32 %a, i32 %b) {
7 %tmp = sub i32 %b, %a
8 ret i32 %tmp
9}