1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-w64-windows-gnu | FileCheck %s
4 %union.c_v256.26.65.104.143.962.1248 = type { [4 x i64] }
6 define void @_ZN14simd_test_avx216c_imm_v256_alignILi1EEE6c_v256S1_S1_(%union.c_v256.26.65.104.143.962.1248* byval(%union.c_v256.26.65.104.143.962.1248) align 4) #0 {
7 ; CHECK-LABEL: _ZN14simd_test_avx216c_imm_v256_alignILi1EEE6c_v256S1_S1_:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vmovdqu {{[0-9]+}}(%esp), %xmm0
10 ; CHECK-NEXT: vmovd {{.*#+}} xmm1 = mem[0],zero,zero,zero
11 ; CHECK-NEXT: vinserti128 $1, %xmm1, %ymm0, %ymm0
12 ; CHECK-NEXT: vpsllq $56, %ymm0, %ymm0
13 ; CHECK-NEXT: vmovdqu %ymm0, (%eax)
14 ; CHECK-NEXT: vzeroupper
17 %b.sroa.0.sroa.2.0.b.sroa.0.0..sroa_cast.sroa_idx38 = getelementptr inbounds %union.c_v256.26.65.104.143.962.1248, %union.c_v256.26.65.104.143.962.1248* %0, i32 0, i32 0, i32 1
18 %1 = bitcast i64* %b.sroa.0.sroa.2.0.b.sroa.0.0..sroa_cast.sroa_idx38 to <2 x i64>*
19 %2 = load <2 x i64>, <2 x i64>* %1, align 4
20 %b.sroa.0.sroa.4.0.copyload = load i64, i64* undef, align 4
21 %3 = extractelement <2 x i64> %2, i32 0
22 %4 = extractelement <2 x i64> %2, i32 1
23 %5 = insertelement <4 x i64> undef, i64 %3, i32 0
24 %6 = insertelement <4 x i64> %5, i64 %4, i32 1
25 %7 = insertelement <4 x i64> %6, i64 %b.sroa.0.sroa.4.0.copyload, i32 2
26 %8 = insertelement <4 x i64> %7, i64 undef, i32 3
27 %9 = shl <4 x i64> %8, <i64 56, i64 56, i64 56, i64 56>
28 %10 = or <4 x i64> %9, zeroinitializer
29 store <4 x i64> %10, <4 x i64>* undef, align 8
33 attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+avx,+avx2,+cx8,+fxsr,+mmx,+popcnt,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave" "unsafe-fp-math"="false" "use-soft-float"="false" }