aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/vec_shuffle.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/vec_shuffle.ll')
-rw-r--r--test/Transforms/InstCombine/vec_shuffle.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/vec_shuffle.ll b/test/Transforms/InstCombine/vec_shuffle.ll
index 09e9a6ae68..6d6646395c 100644
--- a/test/Transforms/InstCombine/vec_shuffle.ll
+++ b/test/Transforms/InstCombine/vec_shuffle.ll
@@ -15,3 +15,10 @@ implementation
ret %T %v2
}
+float %test3(%T %A, %T %B, float %f) {
+ %C = insertelement %T %A, float %f, uint 0
+ %D = shufflevector %T %C, %T %B, <4 x uint> <uint 5, uint 0, uint 2, uint 7>
+ %E = extractelement %T %D, uint 1
+ ret float %E
+}
+