diff options
Diffstat (limited to 'test/CodeGen/ARM/fast-isel-crash2.ll')
-rw-r--r-- | test/CodeGen/ARM/fast-isel-crash2.ll | 9 |
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 +} |