aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/long.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-10-13 17:19:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-10-13 17:19:20 +0000
commit5395538307ea22b55cd01776badbc8c4f977df63 (patch)
tree1db38288704dac8f94e0aa0ba40d2c5ed3deb66d /test/CodeGen/ARM/long.ll
parent26a76d1024e944669a80dd86bcd0b81d7394a4f5 (diff)
add SBCS and SUBS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/long.ll')
-rw-r--r--test/CodeGen/ARM/long.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/long.ll b/test/CodeGen/ARM/long.ll
index f08ee6a336..c01a4cb613 100644
--- a/test/CodeGen/ARM/long.ll
+++ b/test/CodeGen/ARM/long.ll
@@ -5,7 +5,9 @@
; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #-2147483648" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm | grep ".word.*4294967295" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm | grep "adds" | wc -l | grep 1 &&
-; RUN: llvm-as < %s | llc -march=arm | grep "adcs" | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep "adcs" | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=arm | grep "subs" | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=arm | grep "sbcs" | wc -l | grep 1
long %f1() {
entry:
@@ -44,3 +46,9 @@ entry:
ret void
}
declare long %f8()
+
+long %f9(long %a, long %b) {
+entry:
+ %tmp = sub long %a, %b
+ ret long %tmp
+}