[llvm] 1cbafb3 - [X86] avg.ll - add common CHECK prefix
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 03:26:54 PDT 2024
Author: Simon Pilgrim
Date: 2024-06-13T11:24:58+01:00
New Revision: 1cbafb3c3f8344570b39484ad1056596eb15c9b9
URL: https://github.com/llvm/llvm-project/commit/1cbafb3c3f8344570b39484ad1056596eb15c9b9
DIFF: https://github.com/llvm/llvm-project/commit/1cbafb3c3f8344570b39484ad1056596eb15c9b9.diff
LOG: [X86] avg.ll - add common CHECK prefix
Added:
Modified:
llvm/test/CodeGen/X86/avg.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/avg.ll b/llvm/test/CodeGen/X86/avg.ll
index 698e15384f0ee..6909430a1dde9 100644
--- a/llvm/test/CodeGen/X86/avg.ll
+++ b/llvm/test/CodeGen/X86/avg.ll
@@ -1,9 +1,9 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=SSE2
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=AVX --check-prefix=AVX1
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefix=AVX --check-prefix=AVX2
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512F
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512BW
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefixes=CHECK,SSE2
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=CHECK,AVX,AVX1
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=CHECK,AVX,AVX2
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=CHECK,AVX,AVX512,AVX512F
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefixes=CHECK,AVX,AVX512,AVX512BW
define void @avg_v4i8(ptr %a, ptr %b) nounwind {
; SSE2-LABEL: avg_v4i8:
@@ -1971,23 +1971,14 @@ define void @not_avg_v16i8_wide_constants(ptr %a, ptr %b) nounwind {
; Make sure we don't fail on single element vectors.
define <1 x i8> @avg_v1i8(<1 x i8> %x, <1 x i8> %y) {
-; SSE2-LABEL: avg_v1i8:
-; SSE2: # %bb.0:
-; SSE2-NEXT: movl %edi, %eax
-; SSE2-NEXT: orb %sil, %al
-; SSE2-NEXT: xorb %sil, %dil
-; SSE2-NEXT: shrb %dil
-; SSE2-NEXT: subb %dil, %al
-; SSE2-NEXT: retq
-;
-; AVX-LABEL: avg_v1i8:
-; AVX: # %bb.0:
-; AVX-NEXT: movl %edi, %eax
-; AVX-NEXT: orb %sil, %al
-; AVX-NEXT: xorb %sil, %dil
-; AVX-NEXT: shrb %dil
-; AVX-NEXT: subb %dil, %al
-; AVX-NEXT: retq
+; CHECK-LABEL: avg_v1i8:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl %edi, %eax
+; CHECK-NEXT: orb %sil, %al
+; CHECK-NEXT: xorb %sil, %dil
+; CHECK-NEXT: shrb %dil
+; CHECK-NEXT: subb %dil, %al
+; CHECK-NEXT: retq
%a = zext <1 x i8> %x to <1 x i16>
%b = zext <1 x i8> %y to <1 x i16>
%c = add <1 x i16> %a, %b
More information about the llvm-commits
mailing list