2015-11-24 05:33:58 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2015-04-04 01:02:48 +08:00
|
|
|
; RUN: llc < %s -mattr=+avx -mtriple=i686-unknown-unknown | FileCheck %s
|
2012-01-10 22:28:46 +08:00
|
|
|
|
|
|
|
define void @bad_cast() {
|
2015-04-04 01:02:48 +08:00
|
|
|
; CHECK-LABEL: bad_cast:
|
|
|
|
; CHECK: # BB#0:
|
2017-07-28 01:47:01 +08:00
|
|
|
; CHECK-NEXT: vxorps %xmm0, %xmm0, %xmm0
|
2015-04-04 01:02:48 +08:00
|
|
|
; CHECK-NEXT: vmovaps %xmm0, (%eax)
|
|
|
|
; CHECK-NEXT: movl $0, (%eax)
|
|
|
|
; CHECK-NEXT: retl
|
2012-01-10 22:28:46 +08:00
|
|
|
%vext.i = shufflevector <2 x i64> undef, <2 x i64> undef, <3 x i32> <i32 0, i32 1, i32 undef>
|
|
|
|
%vecinit8.i = shufflevector <3 x i64> zeroinitializer, <3 x i64> %vext.i, <3 x i32> <i32 0, i32 3, i32 4>
|
|
|
|
store <3 x i64> %vecinit8.i, <3 x i64>* undef, align 32
|
2012-01-11 22:07:51 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @bad_insert(i32 %t) {
|
2015-04-04 01:02:48 +08:00
|
|
|
; CHECK-LABEL: bad_insert:
|
|
|
|
; CHECK: # BB#0:
|
2016-12-16 00:05:29 +08:00
|
|
|
; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
|
|
; CHECK-NEXT: vmovaps %ymm0, (%eax)
|
2015-04-04 01:02:48 +08:00
|
|
|
; CHECK-NEXT: vzeroupper
|
|
|
|
; CHECK-NEXT: retl
|
2012-01-11 22:07:51 +08:00
|
|
|
%v2 = insertelement <8 x i32> zeroinitializer, i32 %t, i32 0
|
|
|
|
store <8 x i32> %v2, <8 x i32> addrspace(1)* undef, align 32
|
|
|
|
ret void
|
2012-01-10 22:28:46 +08:00
|
|
|
}
|
|
|
|
|