David Goodwin | 2634e98 | 2009-06-26 18:10:30 +0000 | [diff] [blame^] | 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 | } |