summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfe84bd659cfb5432b7be77ede5809ccb16709581 (patch)
tree35229403212f986ecca89f807027927a3040a2ca /llvm/test/CodeGen/ARM/fast-isel-crash2.ll
parent3c6aed2d98f0213cd52ca90df40dd74ceb0302a8 (diff)
downloadbcm5719-llvm-fe84bd659cfb5432b7be77ede5809ccb16709581.tar.gz
bcm5719-llvm-fe84bd659cfb5432b7be77ede5809ccb16709581.zip
Fix a silly mistake (which trips over an assertion) in r132099. rdar://9515076
llvm-svn: 132194
Diffstat (limited to 'llvm/test/CodeGen/ARM/fast-isel-crash2.ll')
-rw-r--r--llvm/test/CodeGen/ARM/fast-isel-crash2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fast-isel-crash2.ll b/llvm/test/CodeGen/ARM/fast-isel-crash2.ll
new file mode 100644
index 00000000000..273e67e7e4b
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud