1 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 define double @a(<1 x i64> %y) {
4 %c = bitcast <1 x i64> %y to double
8 ; CHECK-NEXT: bitcast <1 x i64> %y to <1 x double>
9 ; CHECK-NEXT: extractelement <1 x double> {{.*}}, i32 0
10 ; CHECK-NEXT: ret double
13 define i64 @b(<1 x i64> %y) {
14 %c = bitcast <1 x i64> %y to i64
18 ; CHECK-NEXT: extractelement <1 x i64> %y, i32 0
22 define <1 x i64> @c(double %y) {
23 %c = bitcast double %y to <1 x i64>
27 ; CHECK-NEXT: bitcast double %y to i64
28 ; CHECK-NEXT: insertelement <1 x i64> undef, i64 {{.*}}, i32 0
29 ; CHECK-NEXT: ret <1 x i64>
32 define <1 x i64> @d(i64 %y) {
33 %c = bitcast i64 %y to <1 x i64>
37 ; CHECK-NEXT: insertelement <1 x i64> undef, i64 %y, i32 0
38 ; CHECK-NEXT: ret <1 x i64>