blob: b3a34514e2cc6d13b3ab88a3b0dab27b6d1ad563 [file] [log] [blame]
David Goodwin2634e982009-06-26 18:10:30 +00001; 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
6define i32 @f1(i32 %a, i32 %b) {
7 %tmp = sub i32 %b, %a
8 ret i32 %tmp
9}