aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2006-03-30-ExtractElement.ll')
-rw-r--r--test/Transforms/InstCombine/2006-03-30-ExtractElement.ll8
1 files changed, 8 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 0000000..aa7d587
--- /dev/null
+++ b/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
@@ -0,0 +1,8 @@
+; RUN: opt < %s -instcombine -disable-output
+
+define float @test(<4 x float> %V) {
+ %V2 = insertelement <4 x float> %V, float 1.000000e+00, i32 3 ; <<4 x float>> [#uses=1]
+ %R = extractelement <4 x float> %V2, i32 2 ; <float> [#uses=1]
+ ret float %R
+}
+