diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-05-18 00:03:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-05-18 00:03:40 +0000 |
commit | a083988c8a7d57f37bfdd9d595fc3d55c60ea8ae (patch) | |
tree | 033100c9f8302d9173d259ccaaa74cb7d4ba39b9 /test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll | |
parent | 535af4a320ba169342c87433841dc64fbdcd72b3 (diff) | |
download | external_llvm-a083988c8a7d57f37bfdd9d595fc3d55c60ea8ae.zip external_llvm-a083988c8a7d57f37bfdd9d595fc3d55c60ea8ae.tar.gz external_llvm-a083988c8a7d57f37bfdd9d595fc3d55c60ea8ae.tar.bz2 |
FIX PR7158. SimplifyVBinOp was asserting when it fails to constant fold (op (build_vector), (build_vector)).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll')
-rw-r--r-- | test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll b/test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll new file mode 100644 index 0000000..2a4bbd1 --- /dev/null +++ b/test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -mtriple=armv7-eabi -mcpu=cortex-a8 +; PR7158 + +define arm_aapcs_vfpcc i32 @main() nounwind { +bb.nph55.bb.nph55.split_crit_edge: + br label %bb3 + +bb3: ; preds = %bb3, %bb.nph55.bb.nph55.split_crit_edge + br i1 undef, label %bb.i19, label %bb3 + +bb.i19: ; preds = %bb.i19, %bb3 + %0 = insertelement <4 x float> undef, float undef, i32 3 ; <<4 x float>> [#uses=3] + %1 = fmul <4 x float> %0, %0 ; <<4 x float>> [#uses=1] + %2 = bitcast <4 x float> %1 to <2 x double> ; <<2 x double>> [#uses=0] + %3 = fmul <4 x float> %0, undef ; <<4 x float>> [#uses=0] + br label %bb.i19 +} |