summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2/thumb2-add6.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-08-12 01:49:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-08-12 01:49:45 +0000
commit1e6c2a1c179a68836ad3b007f28bc94ec805a80c (patch)
tree517c9a2af233ca255aaa4d217d9fb41ddfee3033 /llvm/test/CodeGen/Thumb2/thumb2-add6.ll
parent9e8b647539ca657cd737a9d4efa8adef5c4d77d4 (diff)
downloadbcm5719-llvm-1e6c2a1c179a68836ad3b007f28bc94ec805a80c.tar.gz
bcm5719-llvm-1e6c2a1c179a68836ad3b007f28bc94ec805a80c.zip
Shrink ADDS, ADC, RSB, and SUBS.
llvm-svn: 78776
Diffstat (limited to 'llvm/test/CodeGen/Thumb2/thumb2-add6.ll')
-rw-r--r--llvm/test/CodeGen/Thumb2/thumb2-add6.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Thumb2/thumb2-add6.ll b/llvm/test/CodeGen/Thumb2/thumb2-add6.ll
index 628232f9daa..ca6df050e6d 100644
--- a/llvm/test/CodeGen/Thumb2/thumb2-add6.ll
+++ b/llvm/test/CodeGen/Thumb2/thumb2-add6.ll
@@ -1,6 +1,9 @@
-; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {adds\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\]} | count 1
+; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | FileCheck %s
define i64 @f1(i64 %a, i64 %b) {
+; CHECK: f1:
+; CHECK: adds r0, r0, r2
+; CHECK: adcs r1, r3
%tmp = add i64 %a, %b
ret i64 %tmp
}
OpenPOWER on IntegriCloud