1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=avx | FileCheck %s
4 @v2_0 = dso_local global <2 x i32> zeroinitializer, align 8
6 define dso_local void @test() {
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: pushq %rbp
10 ; CHECK-NEXT: .cfi_def_cfa_offset 16
11 ; CHECK-NEXT: .cfi_offset %rbp, -16
12 ; CHECK-NEXT: movq %rsp, %rbp
13 ; CHECK-NEXT: .cfi_def_cfa_register %rbp
14 ; CHECK-NEXT: andq $-32, %rsp
15 ; CHECK-NEXT: subq $64, %rsp
16 ; CHECK-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
17 ; CHECK-NEXT: vpcmpeqd %xmm1, %xmm1, %xmm1
18 ; CHECK-NEXT: vshufps {{.*#+}} xmm2 = xmm1[1,0],xmm0[1,0]
19 ; CHECK-NEXT: vshufps {{.*#+}} xmm0 = xmm2[2,0],xmm0[0,0]
20 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
21 ; CHECK-NEXT: vmovaps %ymm0, (%rsp)
22 ; CHECK-NEXT: movq %rbp, %rsp
23 ; CHECK-NEXT: popq %rbp
24 ; CHECK-NEXT: .cfi_def_cfa %rsp, 8
25 ; CHECK-NEXT: vzeroupper
28 %v8_0 = alloca <8 x i32>, align 32
29 %0 = load <2 x i32>, ptr @v2_0, align 8
30 %shuffle = shufflevector <2 x i32> %0, <2 x i32> <i32 -1, i32 -1>, <8 x i32> <i32 1, i32 3, i32 0, i32 0, i32 3, i32 3, i32 2, i32 2>
31 store volatile <8 x i32> %shuffle, ptr %v8_0, align 32