1 ; RUN: llc < %s -mattr=+avx -mtriple=i686-unknown-unknown | FileCheck %s 2 3 define void @bad_cast() { 4 ; CHECK-LABEL: bad_cast: 5 ; CHECK: # BB#0: 6 ; CHECK-NEXT: vxorps %xmm0, %xmm0, %xmm0 7 ; CHECK-NEXT: vmovaps %xmm0, (%eax) 8 ; CHECK-NEXT: movl $0, (%eax) 9 ; CHECK-NEXT: vzeroupper 10 ; CHECK-NEXT: retl 11 %vext.i = shufflevector <2 x i64> undef, <2 x i64> undef, <3 x i32> <i32 0, i32 1, i32 undef> 12 %vecinit8.i = shufflevector <3 x i64> zeroinitializer, <3 x i64> %vext.i, <3 x i32> <i32 0, i32 3, i32 4> 13 store <3 x i64> %vecinit8.i, <3 x i64>* undef, align 32 14 ret void 15 } 16 17 define void @bad_insert(i32 %t) { 18 ; CHECK-LABEL: bad_insert: 19 ; CHECK: # BB#0: 20 ; CHECK-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero 21 ; CHECK-NEXT: vmovaps %ymm0, (%eax) 22 ; CHECK-NEXT: vzeroupper 23 ; CHECK-NEXT: retl 24 %v2 = insertelement <8 x i32> zeroinitializer, i32 %t, i32 0 25 store <8 x i32> %v2, <8 x i32> addrspace(1)* undef, align 32 26 ret void 27 } 28 29