diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-28 23:03:25 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-28 23:03:25 +0000 |
commit | e4ecd42926501922f3f7206d715ece1aa7b4f446 (patch) | |
tree | 75c6e563478e5473a24c12b00ec3aec020404d69 /llvm/test/CodeGen/ARM/fast-isel-redefinition.ll | |
parent | 03535265ef1633f7abde26010b0e17d96f27d463 (diff) | |
download | bcm5719-llvm-e4ecd42926501922f3f7206d715ece1aa7b4f446.tar.gz bcm5719-llvm-e4ecd42926501922f3f7206d715ece1aa7b4f446.zip |
Fix a rather obscure crash caused by ARM fast-isel generating code which redefines a register.
rdar://problem/9338332 .
llvm-svn: 130454
Diffstat (limited to 'llvm/test/CodeGen/ARM/fast-isel-redefinition.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/fast-isel-redefinition.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fast-isel-redefinition.ll b/llvm/test/CodeGen/ARM/fast-isel-redefinition.ll new file mode 100644 index 00000000000..262432f807a --- /dev/null +++ b/llvm/test/CodeGen/ARM/fast-isel-redefinition.ll @@ -0,0 +1,11 @@ +; RUN: llc -O0 -regalloc=linearscan | grep "ldr r0" +; This isn't exactly a useful set of command-line options, but check that it +; doesn't crash. (It was crashing because a register was getting redefined.) + +target triple = "thumbv7-apple-macosx10.6.7" + +define i32 @f(i32* %x) nounwind ssp { + %y = getelementptr inbounds i32* %x, i32 5000 + %tmp103 = load i32* %y, align 4 + ret i32 %tmp103 +} |