summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2010-07-27 18:02:18 +0000
committerNate Begeman <natebegeman@mac.com>2010-07-27 18:02:18 +0000
commite0efc216eb94f8f92b85cb4f1af2da9ce2a583fc (patch)
tree1aaa0a9faa1f9cd352d08e732d090ae51e429d76 /test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll
parent57cb4f8be1b6dcac5e504d82c8b2a911909f2deb (diff)
downloadllvm-e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc.tar.gz
llvm-e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc.tar.bz2
llvm-e0efc216eb94f8f92b85cb4f1af2da9ce2a583fc.tar.xz
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/2010-07-27-DAGCombineCrash.ll')
-rw-r--r--test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll6
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 0000000000..a2945aaec3
--- /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);
+}