aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-30 22:01:08 +0000
committerChris Lattner <sabre@nondot.org>2006-03-30 22:01:08 +0000
commitfc542a6466ed395b3adfa5653c77c28385b3e552 (patch)
tree05a7472eb368fadeed5399473162eb5ad9732ae6
parent7d9061e3009af718544fde64ea88343fa9cd2ada (diff)
new testcase that crashes instcombine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27260 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/2006-03-30-ExtractElement.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll b/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
new file mode 100644
index 0000000000..99ecd35a09
--- /dev/null
+++ b/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
@@ -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
+}