new testcase that crashes instcombine
authorChris Lattner <sabre@nondot.org>
Thu, 30 Mar 2006 22:01:08 +0000 (22:01 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Mar 2006 22:01:08 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27260 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2006-03-30-ExtractElement.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll b/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
new file mode 100644 (file)
index 0000000..99ecd35
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+
+float %test(<4 x float> %V) {
+       %V2 = insertelement <4 x float> %V, float 1.0, uint 3
+       %R = extractelement <4 x float> %V2, uint 2
+       ret float %R
+}