summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-05-24 18:44:06 +0000
committerBob Wilson <bob.wilson@apple.com>2010-05-24 18:44:06 +0000
commitbb7ecb2bf514e48b3c37afdc43afc8a8fe3a5011 (patch)
treea485be0fb5373d4d3c6548d1a52fb73f80891d2a /test/CodeGen
parent295cdf8b8293f31953bad9a4a9c0586e934181c6 (diff)
downloadllvm-bb7ecb2bf514e48b3c37afdc43afc8a8fe3a5011.tar.gz
llvm-bb7ecb2bf514e48b3c37afdc43afc8a8fe3a5011.tar.bz2
llvm-bb7ecb2bf514e48b3c37afdc43afc8a8fe3a5011.tar.xz
Thumb2 RSBS instructions were being printed without the 'S' suffix.
Fix it by changing the T2I_rbin_s_is multiclass to handle the CPSR output and 'S' suffix in the same way as T2I_bin_s_irs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/Thumb2/2010-05-24-rsbs.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/2010-05-24-rsbs.ll b/test/CodeGen/Thumb2/2010-05-24-rsbs.ll
new file mode 100644
index 0000000000..7a40aa950c
--- /dev/null
+++ b/test/CodeGen/Thumb2/2010-05-24-rsbs.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s
+; Radar 8017376: Missing 's' suffix for t2RSBS instructions.
+; CHECK: rsbs
+
+define arm_apcscc i64 @test(i64 %x) nounwind readnone {
+entry:
+ %0 = sub nsw i64 1, %x ; <i64> [#uses=1]
+ ret i64 %0
+}