aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/fast-isel-crash2.ll
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-05-27 18:02:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-05-27 18:02:04 +0000
commita4d487fc1e2f95f4b47ad472071bfdd484eb3b40 (patch)
treecb86b58078abbc2e18153e8632850091f5cc4c86 /test/CodeGen/ARM/fast-isel-crash2.ll
parentb58128e2b2375173aafb07905bd53014d622e4ba (diff)
downloadexternal_llvm-a4d487fc1e2f95f4b47ad472071bfdd484eb3b40.zip
external_llvm-a4d487fc1e2f95f4b47ad472071bfdd484eb3b40.tar.gz
external_llvm-a4d487fc1e2f95f4b47ad472071bfdd484eb3b40.tar.bz2
Fix a silly mistake (which trips over an assertion) in r132099. rdar://9515076
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fast-isel-crash2.ll')
-rw-r--r--test/CodeGen/ARM/fast-isel-crash2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fast-isel-crash2.ll b/test/CodeGen/ARM/fast-isel-crash2.ll
new file mode 100644
index 0000000..273e67e
--- /dev/null
+++ b/test/CodeGen/ARM/fast-isel-crash2.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -O0 -mtriple=thumbv7-apple-darwin
+; rdar://9515076
+; (Make sure this doesn't crash.)
+
+define i32 @test(i32 %i) {
+ %t = trunc i32 %1 to i4
+ %r = sext i4 %t to i32
+ ret i32 %r
+}