2018-01-30 01:56:55 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=avx2 -O0 | FileCheck %s
|
|
|
|
|
|
|
|
define <16 x i64> @pluto(<16 x i64> %arg, <16 x i64> %arg1, <16 x i64> %arg2, <16 x i64> %arg3, <16 x i64> %arg4) {
|
|
|
|
; CHECK-LABEL: pluto:
|
|
|
|
; CHECK: # %bb.0: # %bb
|
|
|
|
; CHECK-NEXT: pushq %rbp
|
|
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
|
|
; CHECK-NEXT: .cfi_offset %rbp, -16
|
|
|
|
; CHECK-NEXT: movq %rsp, %rbp
|
|
|
|
; CHECK-NEXT: .cfi_def_cfa_register %rbp
|
|
|
|
; CHECK-NEXT: andq $-32, %rsp
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: subq $192, %rsp
|
2018-01-30 01:56:55 +08:00
|
|
|
; CHECK-NEXT: vmovaps 240(%rbp), %ymm8
|
|
|
|
; CHECK-NEXT: vmovaps 208(%rbp), %ymm9
|
|
|
|
; CHECK-NEXT: vmovaps 176(%rbp), %ymm10
|
|
|
|
; CHECK-NEXT: vmovaps 144(%rbp), %ymm11
|
|
|
|
; CHECK-NEXT: vmovaps 112(%rbp), %ymm12
|
|
|
|
; CHECK-NEXT: vmovaps 80(%rbp), %ymm13
|
|
|
|
; CHECK-NEXT: vmovaps 48(%rbp), %ymm14
|
|
|
|
; CHECK-NEXT: vmovaps 16(%rbp), %ymm15
|
2019-03-03 08:18:07 +08:00
|
|
|
; CHECK-NEXT: vpblendd {{.*#+}} ymm2 = ymm6[0,1,2,3,4,5],ymm2[6,7]
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm9, {{[-0-9]+}}(%r{{[sb]}}p) # 32-byte Spill
|
2018-09-09 22:13:22 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm0, {{[-0-9]+}}(%r{{[sb]}}p) # 32-byte Spill
|
2018-02-01 06:04:26 +08:00
|
|
|
; CHECK-NEXT: # implicit-def: $ymm0
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: vinserti128 $1, %xmm9, %ymm0, %ymm0
|
|
|
|
; CHECK-NEXT: vpalignr {{.*#+}} ymm2 = ymm2[8,9,10,11,12,13,14,15],ymm11[0,1,2,3,4,5,6,7],ymm2[24,25,26,27,28,29,30,31],ymm11[16,17,18,19,20,21,22,23]
|
|
|
|
; CHECK-NEXT: vpermq {{.*#+}} ymm2 = ymm2[2,3,2,0]
|
|
|
|
; CHECK-NEXT: vpblendd {{.*#+}} ymm0 = ymm2[0,1,2,3],ymm0[4,5],ymm2[6,7]
|
|
|
|
; CHECK-NEXT: vmovaps %xmm7, %xmm9
|
|
|
|
; CHECK-NEXT: vpslldq {{.*#+}} xmm9 = zero,zero,zero,zero,zero,zero,zero,zero,xmm9[0,1,2,3,4,5,6,7]
|
|
|
|
; CHECK-NEXT: # implicit-def: $ymm2
|
|
|
|
; CHECK-NEXT: vmovaps %xmm9, %xmm2
|
|
|
|
; CHECK-NEXT: vmovaps {{[-0-9]+}}(%r{{[sb]}}p), %ymm11 # 32-byte Reload
|
|
|
|
; CHECK-NEXT: vpalignr {{.*#+}} ymm9 = ymm11[8,9,10,11,12,13,14,15],ymm5[0,1,2,3,4,5,6,7],ymm11[24,25,26,27,28,29,30,31],ymm5[16,17,18,19,20,21,22,23]
|
2018-09-20 02:11:34 +08:00
|
|
|
; CHECK-NEXT: vpermq {{.*#+}} ymm9 = ymm9[0,1,0,3]
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: vpblendd {{.*#+}} ymm2 = ymm2[0,1,2,3],ymm9[4,5,6,7]
|
|
|
|
; CHECK-NEXT: vpblendd {{.*#+}} ymm8 = ymm7[0,1],ymm8[2,3],ymm7[4,5,6,7]
|
|
|
|
; CHECK-NEXT: vpermq {{.*#+}} ymm8 = ymm8[2,1,1,3]
|
2018-02-17 08:30:30 +08:00
|
|
|
; CHECK-NEXT: vpshufd {{.*#+}} ymm5 = ymm5[0,1,0,1,4,5,4,5]
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: vpblendd {{.*#+}} ymm5 = ymm8[0,1,2,3,4,5],ymm5[6,7]
|
|
|
|
; CHECK-NEXT: vextracti128 $1, %ymm7, %xmm7
|
|
|
|
; CHECK-NEXT: vmovq {{.*#+}} xmm7 = xmm7[0],zero
|
|
|
|
; CHECK-NEXT: # implicit-def: $ymm8
|
|
|
|
; CHECK-NEXT: vmovaps %xmm7, %xmm8
|
|
|
|
; CHECK-NEXT: vperm2i128 {{.*#+}} ymm6 = ymm8[0,1],ymm6[0,1]
|
2018-08-09 20:30:02 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm1, {{[-0-9]+}}(%r{{[sb]}}p) # 32-byte Spill
|
2018-02-17 08:30:30 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm5, %ymm1
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm2, {{[-0-9]+}}(%r{{[sb]}}p) # 32-byte Spill
|
|
|
|
; CHECK-NEXT: vmovaps %ymm6, %ymm2
|
|
|
|
; CHECK-NEXT: vmovaps {{[-0-9]+}}(%r{{[sb]}}p), %ymm5 # 32-byte Reload
|
2019-05-04 03:06:57 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm3, (%rsp) # 32-byte Spill
|
2020-03-10 18:44:12 +08:00
|
|
|
; CHECK-NEXT: vmovaps %ymm5, %ymm3
|
2018-01-30 01:56:55 +08:00
|
|
|
; CHECK-NEXT: movq %rbp, %rsp
|
|
|
|
; CHECK-NEXT: popq %rbp
|
2018-04-24 18:32:08 +08:00
|
|
|
; CHECK-NEXT: .cfi_def_cfa %rsp, 8
|
2018-01-30 01:56:55 +08:00
|
|
|
; CHECK-NEXT: retq
|
|
|
|
bb:
|
|
|
|
%tmp = select <16 x i1> <i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 true, i1 true, i1 false, i1 false, i1 false, i1 false>, <16 x i64> %arg, <16 x i64> %arg1
|
|
|
|
%tmp5 = select <16 x i1> <i1 true, i1 false, i1 false, i1 true, i1 true, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false>, <16 x i64> %arg2, <16 x i64> zeroinitializer
|
|
|
|
%tmp6 = select <16 x i1> <i1 false, i1 true, i1 true, i1 true, i1 false, i1 false, i1 false, i1 false, i1 true, i1 true, i1 false, i1 false, i1 false, i1 true, i1 true, i1 true>, <16 x i64> %arg3, <16 x i64> %tmp5
|
|
|
|
%tmp7 = shufflevector <16 x i64> %tmp, <16 x i64> %tmp6, <16 x i32> <i32 11, i32 18, i32 24, i32 9, i32 14, i32 29, i32 29, i32 6, i32 14, i32 28, i32 8, i32 9, i32 22, i32 12, i32 25, i32 6>
|
|
|
|
ret <16 x i64> %tmp7
|
|
|
|
}
|