diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
commit | d8e91e46262bc44006913e6796843909f1ac7bcd (patch) | |
tree | 7d0c143d9b38190e0fa0180805389da22cd834c5 /test/CodeGen/X86/vector-popcnt-512.ll | |
parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
download | src-d8e91e46262bc44006913e6796843909f1ac7bcd.tar.gz src-d8e91e46262bc44006913e6796843909f1ac7bcd.zip |
Vendor import of llvm trunk r351319 (just before the release_80 branchvendor/llvm/llvm-trunk-r351319
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=343171
svn path=/vendor/llvm/llvm-trunk-r351319/; revision=343172; tag=vendor/llvm/llvm-trunk-r351319
Diffstat (limited to 'test/CodeGen/X86/vector-popcnt-512.ll')
-rw-r--r-- | test/CodeGen/X86/vector-popcnt-512.ll | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/test/CodeGen/X86/vector-popcnt-512.ll b/test/CodeGen/X86/vector-popcnt-512.ll index df5edc13c3ea..eae9e6c79bd4 100644 --- a/test/CodeGen/X86/vector-popcnt-512.ll +++ b/test/CodeGen/X86/vector-popcnt-512.ll @@ -50,14 +50,7 @@ define <8 x i64> @testv8i64(<8 x i64> %in) nounwind { ; ; BITALG-LABEL: testv8i64: ; BITALG: # %bb.0: -; BITALG-NEXT: vmovdqa64 {{.*#+}} zmm1 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15] -; BITALG-NEXT: vpandq %zmm1, %zmm0, %zmm2 -; BITALG-NEXT: vmovdqa64 {{.*#+}} zmm3 = [0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4] -; BITALG-NEXT: vpshufb %zmm2, %zmm3, %zmm2 -; BITALG-NEXT: vpsrlw $4, %zmm0, %zmm0 -; BITALG-NEXT: vpandq %zmm1, %zmm0, %zmm0 -; BITALG-NEXT: vpshufb %zmm0, %zmm3, %zmm0 -; BITALG-NEXT: vpaddb %zmm2, %zmm0, %zmm0 +; BITALG-NEXT: vpopcntb %zmm0, %zmm0 ; BITALG-NEXT: vpxor %xmm1, %xmm1, %xmm1 ; BITALG-NEXT: vpsadbw %zmm1, %zmm0, %zmm0 ; BITALG-NEXT: retq @@ -122,14 +115,7 @@ define <16 x i32> @testv16i32(<16 x i32> %in) nounwind { ; ; BITALG-LABEL: testv16i32: ; BITALG: # %bb.0: -; BITALG-NEXT: vmovdqa64 {{.*#+}} zmm1 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15] -; BITALG-NEXT: vpandq %zmm1, %zmm0, %zmm2 -; BITALG-NEXT: vmovdqa64 {{.*#+}} zmm3 = [0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4] -; BITALG-NEXT: vpshufb %zmm2, %zmm3, %zmm2 -; BITALG-NEXT: vpsrlw $4, %zmm0, %zmm0 -; BITALG-NEXT: vpandq %zmm1, %zmm0, %zmm0 -; BITALG-NEXT: vpshufb %zmm0, %zmm3, %zmm0 -; BITALG-NEXT: vpaddb %zmm2, %zmm0, %zmm0 +; BITALG-NEXT: vpopcntb %zmm0, %zmm0 ; BITALG-NEXT: vpxor %xmm1, %xmm1, %xmm1 ; BITALG-NEXT: vpunpckhdq {{.*#+}} zmm2 = zmm0[2],zmm1[2],zmm0[3],zmm1[3],zmm0[6],zmm1[6],zmm0[7],zmm1[7],zmm0[10],zmm1[10],zmm0[11],zmm1[11],zmm0[14],zmm1[14],zmm0[15],zmm1[15] ; BITALG-NEXT: vpsadbw %zmm1, %zmm2, %zmm2 |