summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2/thumb2-sub5.ll
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-06-29 22:25:22 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-06-29 22:25:22 +0000
commit911edef65be0c4bff17b752b44b5f29a97f938b1 (patch)
tree181692c1c5bb00aaffc8b9947424b4795c56457d /llvm/test/CodeGen/Thumb2/thumb2-sub5.ll
parent5992b4a2112ebacbf7bba319e79d4c5ddd2efcd3 (diff)
downloadbcm5719-llvm-911edef65be0c4bff17b752b44b5f29a97f938b1.tar.gz
bcm5719-llvm-911edef65be0c4bff17b752b44b5f29a97f938b1.zip
Thumb-2 tests
llvm-svn: 74464
Diffstat (limited to 'llvm/test/CodeGen/Thumb2/thumb2-sub5.ll')
-rw-r--r--llvm/test/CodeGen/Thumb2/thumb2-sub5.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/thumb2-sub5.ll b/llvm/test/CodeGen/Thumb2/thumb2-sub5.ll
new file mode 100644
index 00000000000..3e9ec256973
--- /dev/null
+++ b/llvm/test/CodeGen/Thumb2/thumb2-sub5.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {subs\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\]} | count 1
+
+define i64 @f1(i64 %a, i64 %b) {
+ %tmp = sub i64 %a, %b
+ ret i64 %tmp
+}
OpenPOWER on IntegriCloud