summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/carry.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/carry.ll')
-rw-r--r--test/CodeGen/ARM/carry.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/carry.ll b/test/CodeGen/ARM/carry.ll
index 06b459e..f84774d 100644
--- a/test/CodeGen/ARM/carry.ll
+++ b/test/CodeGen/ARM/carry.ll
@@ -35,3 +35,13 @@ entry:
%dw = add i64 %ch, %bw
ret i64 %dw
}
+
+; rdar://10073745
+define i64 @f4(i64 %x) nounwind readnone {
+entry:
+; CHECK: f4:
+; CHECK: rsbs r
+; CHECK: rsc r
+ %0 = sub nsw i64 0, %x
+ ret i64 %0
+}
OpenPOWER on IntegriCloud