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