Fix test
[oota-llvm.git] / test / Transforms / InstCombine / bitcast-vec-uniform.ll
1 ; RUN: opt < %s -instcombine -S | FileCheck %s
2
3 ; CHECK: @a
4 ; CHECK-NOT: bitcast
5 ; CHECK: ret
6 define <4 x i32> @a(<1 x i64> %y) {
7   %c = bitcast <2 x i64> <i64 0, i64 0> to <4 x i32>
8   ret <4 x i32> %c
9 }
10
11 ; CHECK: @b
12 ; CHECK-NOT: bitcast
13 ; CHECK: ret
14
15 define <4 x i32> @b(<1 x i64> %y) {
16   %c = bitcast <2 x i64> <i64 -1, i64 -1> to <4 x i32>
17   ret <4 x i32> %c
18 }
19
20 ; CHECK: @foo
21 ; CHECK: bitcast
22
23 ; from MultiSource/Benchmarks/Bullet
24 define <2 x float> @foo() {
25   %cast = bitcast i64 -1 to <2 x float>
26   ret <2 x float> %cast
27 }
28
29
30