diff options
author | Nate Begeman <natebegeman@mac.com> | 2010-07-27 18:02:18 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2010-07-27 18:02:18 +0000 |
commit | e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc (patch) | |
tree | 1aaa0a9faa1f9cd352d08e732d090ae51e429d76 /test/CodeGen/Generic | |
parent | 57cb4f8be1b6dcac5e504d82c8b2a911909f2deb (diff) | |
download | external_llvm-e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc.zip external_llvm-e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc.tar.gz external_llvm-e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc.tar.bz2 |
Fix a crash in the dag combiner caused by ConstantFoldBIT_CONVERTofBUILD_VECTOR calling itself
recursively and returning a SCALAR_TO_VECTOR node, but assuming the input was always a BUILD_VECTOR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r-- | test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll b/test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll new file mode 100644 index 0000000..a2945aa --- /dev/null +++ b/test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll @@ -0,0 +1,6 @@ +; RUN: llc < %s + +define float @test1() +{ + ret float extractelement (<2 x float> bitcast (<1 x double> <double 0x3f800000> to <2 x float>), i32 1); +} |