1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mattr=+avx -mtriple=i686-unknown-unknown | FileCheck %s
4 define void @bad_cast() {
5 ; CHECK-LABEL: bad_cast:
7 ; CHECK-NEXT: vxorps %xmm0, %xmm0, %xmm0
8 ; CHECK-NEXT: vmovaps %xmm0, (%eax)
9 ; CHECK-NEXT: movl $0, (%eax)
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
17 define void @bad_insert(i32 %t) {
18 ; CHECK-LABEL: bad_insert:
20 ; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
21 ; CHECK-NEXT: vmovaps %ymm0, (%eax)
22 ; CHECK-NEXT: vzeroupper
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