diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-06-29 22:25:22 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-06-29 22:25:22 +0000 |
commit | 8ba221d5c55bbfce03fade83b188cb36f291aca8 (patch) | |
tree | 7ce7798d41c63e2b153168092e5e70a8231b6847 /test/CodeGen/Thumb2/thumb2-sub4.ll | |
parent | 1ad7edc2125d57dcd6c54810d7a4a5f4f77da34b (diff) |
Thumb-2 tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-sub4.ll')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-sub4.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-sub4.ll b/test/CodeGen/Thumb2/thumb2-sub4.ll new file mode 100644 index 00000000000..c6788cbf564 --- /dev/null +++ b/test/CodeGen/Thumb2/thumb2-sub4.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {sub\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\]} | count 1 + +define i32 @f1(i32 %a, i32 %b) { + %tmp = sub i32 %a, %b + ret i32 %tmp +} |