• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4define void @bad_cast() {
5; CHECK-LABEL: bad_cast:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    vxorps %xmm0, %xmm0, %xmm0
8; CHECK-NEXT:    vmovaps %xmm0, (%eax)
9; CHECK-NEXT:    movl $0, (%eax)
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
17define void @bad_insert(i32 %t) {
18; CHECK-LABEL: bad_insert:
19; CHECK:       # %bb.0:
20; CHECK-NEXT:    vmovss {{.*#+}} 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