summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-args-fail.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-26 20:22:30 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-26 20:22:30 +0000
commit31a9bbcd4a183b3062943570fd38be11dd601d41 (patch)
tree5e683ff7fa13e6acb02d5da402cbaa9f9567d19d /llvm/test/CodeGen/X86/fast-isel-args-fail.ll
parent94a2260a7f4eb20921a7b372ef2d286dd8d7d925 (diff)
downloadbcm5719-llvm-31a9bbcd4a183b3062943570fd38be11dd601d41.tar.gz
bcm5719-llvm-31a9bbcd4a183b3062943570fd38be11dd601d41.zip
Add a test case for r176066.
llvm-svn: 176119
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-args-fail.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-args-fail.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-args-fail.ll b/llvm/test/CodeGen/X86/fast-isel-args-fail.ll
new file mode 100644
index 00000000000..4995baa3e5a
--- /dev/null
+++ b/llvm/test/CodeGen/X86/fast-isel-args-fail.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-apple-darwin10
+; Requires: Asserts
+
+; Previously, this would cause an assert.
+define i31 @t1(i31 %a, i31 %b, i31 %c) {
+entry:
+ %add = add nsw i31 %b, %a
+ %add1 = add nsw i31 %add, %c
+ ret i31 %add1
+}
OpenPOWER on IntegriCloud