aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/bitcast-vec-uniform.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/bitcast-vec-uniform.ll')
-rw-r--r--test/Transforms/InstCombine/bitcast-vec-uniform.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/bitcast-vec-uniform.ll b/test/Transforms/InstCombine/bitcast-vec-uniform.ll
new file mode 100644
index 0000000..1fba163
--- /dev/null
+++ b/test/Transforms/InstCombine/bitcast-vec-uniform.ll
@@ -0,0 +1,14 @@
+; RUN: opt < %s -instcombine -S | not grep bitcast
+
+define <4 x i32> @a(<1 x i64> %y) {
+ %c = bitcast <2 x i64> <i64 0, i64 0> to <4 x i32>
+ ret <4 x i32> %c
+}
+
+define <4 x i32> @b(<1 x i64> %y) {
+ %c = bitcast <2 x i64> <i64 -1, i64 -1> to <4 x i32>
+ ret <4 x i32> %c
+}
+
+
+