1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2 ; RUN: llc < %s -mattr=+avx -mtriple=i686-pc-win32 | FileCheck %s 3 4 define void @endless_loop() { 5 ; CHECK-LABEL: endless_loop: 6 ; CHECK: # %bb.0: # %entry 7 ; CHECK-NEXT: vmovaps (%eax), %ymm0 8 ; CHECK-NEXT: vextractf128 $1, %ymm0, %xmm0 9 ; CHECK-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[0,0,1,1] 10 ; CHECK-NEXT: vxorps %xmm1, %xmm1, %xmm1 11 ; CHECK-NEXT: vblendps {{.*#+}} xmm1 = xmm0[0],xmm1[1,2,3] 12 ; CHECK-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[0,1,0,1] 13 ; CHECK-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0 14 ; CHECK-NEXT: vxorps %xmm2, %xmm2, %xmm2 15 ; CHECK-NEXT: vblendps {{.*#+}} ymm0 = ymm2[0,1,2,3,4,5,6],ymm0[7] 16 ; CHECK-NEXT: vmovaps %ymm0, (%eax) 17 ; CHECK-NEXT: vmovaps %ymm1, (%eax) 18 ; CHECK-NEXT: vzeroupper 19 ; CHECK-NEXT: retl 20 entry: 21 %0 = load <8 x i32>, <8 x i32> addrspace(1)* undef, align 32 22 %1 = shufflevector <8 x i32> %0, <8 x i32> undef, <16 x i32> <i32 4, i32 4, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef> 23 %2 = shufflevector <16 x i32> <i32 undef, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 undef>, <16 x i32> %1, <16 x i32> <i32 16, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 17> 24 store <16 x i32> %2, <16 x i32> addrspace(1)* undef, align 64 25 ret void 26 } 27