diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-09-23 06:28:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-09-23 06:28:31 +0000 |
commit | 296925dc169b45e7535abdccc8dc143a8bec7f0a (patch) | |
tree | 8350041adcde3c7f4c62bc987c7291ed028577c7 /test/CodeGen/ARM/2009-09-22-LiveVariablesBug.ll | |
parent | f7cd853071a02392d17ac544f69c14481e5400d0 (diff) | |
download | external_llvm-296925dc169b45e7535abdccc8dc143a8bec7f0a.zip external_llvm-296925dc169b45e7535abdccc8dc143a8bec7f0a.tar.gz external_llvm-296925dc169b45e7535abdccc8dc143a8bec7f0a.tar.bz2 |
Fix PR5024. LiveVariables physical register defs should *commit* only after all
of the defs are processed.
Also fix a implicit_def propagation bug: a implicit_def of a physical register
should be applied to uses of the sub-registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/2009-09-22-LiveVariablesBug.ll')
-rw-r--r-- | test/CodeGen/ARM/2009-09-22-LiveVariablesBug.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2009-09-22-LiveVariablesBug.ll b/test/CodeGen/ARM/2009-09-22-LiveVariablesBug.ll new file mode 100644 index 0000000..30931a2 --- /dev/null +++ b/test/CodeGen/ARM/2009-09-22-LiveVariablesBug.ll @@ -0,0 +1,23 @@ +; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=+neon + +; PR5024 + +%bar = type { %foo, %foo } +%foo = type { <4 x float> } + +declare arm_aapcs_vfpcc float @aaa(%foo* nocapture) nounwind readonly + +declare arm_aapcs_vfpcc %bar* @bbb(%bar*, <4 x float>, <4 x float>) nounwind + +define arm_aapcs_vfpcc void @ccc(i8* nocapture %pBuffer, i32 %numItems) nounwind { +entry: + br i1 undef, label %return, label %bb.nph + +bb.nph: ; preds = %entry + %0 = call arm_aapcs_vfpcc %bar* @bbb(%bar* undef, <4 x float> undef, <4 x float> undef) nounwind ; <%bar*> [#uses=0] + %1 = call arm_aapcs_vfpcc float @aaa(%foo* undef) nounwind ; <float> [#uses=0] + unreachable + +return: ; preds = %entry + ret void +} |