Skip to content

Commit 22e2c72

Browse files
committed
[X86] Add AVX512 tests to AVX common check prefix
1 parent d97d4d8 commit 22e2c72

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

llvm/test/CodeGen/X86/vector-reduce-add-sext.ll

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=AVX,AVX1,AVX1-SLOW
55
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx,+fast-hops | FileCheck %s --check-prefixes=AVX,AVX1,AVX1-FAST
66
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=AVX,AVX2
7-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw | FileCheck %s --check-prefix=AVX512
8-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw,+avx512vl | FileCheck %s --check-prefix=AVX512
7+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw | FileCheck %s --check-prefixes=AVX,AVX512
8+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw,+avx512vl | FileCheck %s --check-prefixes=AVX,AVX512
99

1010
;
1111
; vXi64
@@ -37,14 +37,6 @@ define i64 @test_v2i64_v2i32(<2 x i32> %a0) {
3737
; AVX-NEXT: vpaddq %xmm1, %xmm0, %xmm0
3838
; AVX-NEXT: vmovq %xmm0, %rax
3939
; AVX-NEXT: retq
40-
;
41-
; AVX512-LABEL: test_v2i64_v2i32:
42-
; AVX512: # %bb.0:
43-
; AVX512-NEXT: vpmovsxdq %xmm0, %xmm0
44-
; AVX512-NEXT: vpshufd {{.*#+}} xmm1 = xmm0[2,3,2,3]
45-
; AVX512-NEXT: vpaddq %xmm1, %xmm0, %xmm0
46-
; AVX512-NEXT: vmovq %xmm0, %rax
47-
; AVX512-NEXT: retq
4840
%1 = sext <2 x i32> %a0 to <2 x i64>
4941
%2 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %1)
5042
ret i64 %2

llvm/test/CodeGen/X86/vector-reduce-add-zext.ll

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=AVX,AVX1,AVX1-SLOW
55
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx,+fast-hops | FileCheck %s --check-prefixes=AVX,AVX1,AVX1-FAST
66
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=AVX,AVX2
7-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw | FileCheck %s --check-prefix=AVX512
8-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw,+avx512vl | FileCheck %s --check-prefix=AVX512
7+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw | FileCheck %s --check-prefixes=AVX,AVX512
8+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw,+avx512vl | FileCheck %s --check-prefixes=AVX,AVX512
99

1010
;
1111
; vXi64
@@ -36,14 +36,6 @@ define i64 @test_v2i64_v2i32(<2 x i32> %a0) {
3636
; AVX-NEXT: vpaddq %xmm1, %xmm0, %xmm0
3737
; AVX-NEXT: vmovq %xmm0, %rax
3838
; AVX-NEXT: retq
39-
;
40-
; AVX512-LABEL: test_v2i64_v2i32:
41-
; AVX512: # %bb.0:
42-
; AVX512-NEXT: vpmovzxdq {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero
43-
; AVX512-NEXT: vpshufd {{.*#+}} xmm1 = xmm0[2,3,2,3]
44-
; AVX512-NEXT: vpaddq %xmm1, %xmm0, %xmm0
45-
; AVX512-NEXT: vmovq %xmm0, %rax
46-
; AVX512-NEXT: retq
4739
%1 = zext <2 x i32> %a0 to <2 x i64>
4840
%2 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %1)
4941
ret i64 %2

0 commit comments

Comments
 (0)