Skip to content

Commit 1cbafb3

Browse files
committed
[X86] avg.ll - add common CHECK prefix
1 parent f991a16 commit 1cbafb3

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

llvm/test/CodeGen/X86/avg.ll

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=SSE2
3-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=AVX --check-prefix=AVX1
4-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefix=AVX --check-prefix=AVX2
5-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512F
6-
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512BW
2+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefixes=CHECK,SSE2
3+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=CHECK,AVX,AVX1
4+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=CHECK,AVX,AVX2
5+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=CHECK,AVX,AVX512,AVX512F
6+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefixes=CHECK,AVX,AVX512,AVX512BW
77

88
define void @avg_v4i8(ptr %a, ptr %b) nounwind {
99
; SSE2-LABEL: avg_v4i8:
@@ -1971,23 +1971,14 @@ define void @not_avg_v16i8_wide_constants(ptr %a, ptr %b) nounwind {
19711971

19721972
; Make sure we don't fail on single element vectors.
19731973
define <1 x i8> @avg_v1i8(<1 x i8> %x, <1 x i8> %y) {
1974-
; SSE2-LABEL: avg_v1i8:
1975-
; SSE2: # %bb.0:
1976-
; SSE2-NEXT: movl %edi, %eax
1977-
; SSE2-NEXT: orb %sil, %al
1978-
; SSE2-NEXT: xorb %sil, %dil
1979-
; SSE2-NEXT: shrb %dil
1980-
; SSE2-NEXT: subb %dil, %al
1981-
; SSE2-NEXT: retq
1982-
;
1983-
; AVX-LABEL: avg_v1i8:
1984-
; AVX: # %bb.0:
1985-
; AVX-NEXT: movl %edi, %eax
1986-
; AVX-NEXT: orb %sil, %al
1987-
; AVX-NEXT: xorb %sil, %dil
1988-
; AVX-NEXT: shrb %dil
1989-
; AVX-NEXT: subb %dil, %al
1990-
; AVX-NEXT: retq
1974+
; CHECK-LABEL: avg_v1i8:
1975+
; CHECK: # %bb.0:
1976+
; CHECK-NEXT: movl %edi, %eax
1977+
; CHECK-NEXT: orb %sil, %al
1978+
; CHECK-NEXT: xorb %sil, %dil
1979+
; CHECK-NEXT: shrb %dil
1980+
; CHECK-NEXT: subb %dil, %al
1981+
; CHECK-NEXT: retq
19911982
%a = zext <1 x i8> %x to <1 x i16>
19921983
%b = zext <1 x i8> %y to <1 x i16>
19931984
%c = add <1 x i16> %a, %b

0 commit comments

Comments
 (0)