summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/2010-05-24-rsbs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Thumb2/2010-05-24-rsbs.ll')
-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 0000000..7a40aa9
--- /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
+}
OpenPOWER on IntegriCloud