aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/vector.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/vector.ll')
-rw-r--r--test/CodeGen/Generic/vector.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/vector.ll b/test/CodeGen/Generic/vector.ll
index 962b1295b5de..2d4dc501a53a 100644
--- a/test/CodeGen/Generic/vector.ll
+++ b/test/CodeGen/Generic/vector.ll
@@ -156,3 +156,9 @@ define <2 x i32*> @vector_gep(<2 x [3 x {i32, i32}]*> %a) {
%w = getelementptr [3 x {i32, i32}], <2 x [3 x {i32, i32}]*> %a, <2 x i32> <i32 1, i32 2>, <2 x i32> <i32 2, i32 3>, <2 x i32> <i32 1, i32 1>
ret <2 x i32*> %w
}
+
+define i32 @extractelt_constant_bitcast() {
+ %1 = bitcast i64 4 to <2 x i32>
+ %2 = extractelement <2 x i32> %1, i32 0
+ ret i32 %2
+}