1 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 define double @a(<1 x i64> %y) {
5 ; CHECK-NEXT: [[BC:%.*]] = bitcast <1 x i64> %y to <1 x double>
6 ; CHECK-NEXT: [[C:%.*]] = extractelement <1 x double> [[BC]], i32 0
7 ; CHECK-NEXT: ret double [[C]]
9 %c = bitcast <1 x i64> %y to double
13 define i64 @b(<1 x i64> %y) {
15 ; CHECK-NEXT: [[TMP1:%.*]] = extractelement <1 x i64> %y, i32 0
16 ; CHECK-NEXT: ret i64 [[TMP1]]
18 %c = bitcast <1 x i64> %y to i64
22 define <1 x i64> @c(double %y) {
24 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast double %y to i64
25 ; CHECK-NEXT: [[C:%.*]] = insertelement <1 x i64> undef, i64 [[TMP1]], i32 0
26 ; CHECK-NEXT: ret <1 x i64> [[C]]
28 %c = bitcast double %y to <1 x i64>
32 define <1 x i64> @d(i64 %y) {
34 ; CHECK-NEXT: [[C:%.*]] = insertelement <1 x i64> undef, i64 %y, i32 0
35 ; CHECK-NEXT: ret <1 x i64> [[C]]
37 %c = bitcast i64 %y to <1 x i64>