[llvm] 7da0a69 - [X86] andnot-patterns.ll - add non-BMI test coverage
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 09:44:17 PDT 2024
Author: Simon Pilgrim
Date: 2024-10-18T17:43:57+01:00
New Revision: 7da0a698526ff657c2348a6e4bb835fc764177da
URL: https://github.com/llvm/llvm-project/commit/7da0a698526ff657c2348a6e4bb835fc764177da
DIFF: https://github.com/llvm/llvm-project/commit/7da0a698526ff657c2348a6e4bb835fc764177da.diff
LOG: [X86] andnot-patterns.ll - add non-BMI test coverage
Extra test coverage for #112547 to test cases where we don't create a ANDNOT instruction
Added:
Modified:
llvm/test/CodeGen/X86/andnot-patterns.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/andnot-patterns.ll b/llvm/test/CodeGen/X86/andnot-patterns.ll
index 46ebe6ba76567a..101e4ed008f7b6 100644
--- a/llvm/test/CodeGen/X86/andnot-patterns.ll
+++ b/llvm/test/CodeGen/X86/andnot-patterns.ll
@@ -1,6 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=i686-- -mattr=+bmi | FileCheck %s --check-prefixes=X86
-; RUN: llc < %s -mtriple=x86_64-- -mattr=+bmi | FileCheck %s --check-prefixes=X64
+; RUN: llc < %s -mtriple=i686-- -mattr=-bmi | FileCheck %s --check-prefixes=X86,X86-NOBMI
+; RUN: llc < %s -mtriple=i686-- -mattr=+bmi | FileCheck %s --check-prefixes=X86,X86-BMI
+; RUN: llc < %s -mtriple=x86_64-- -mattr=-bmi | FileCheck %s --check-prefixes=X64,X64-NOBMI
+; RUN: llc < %s -mtriple=x86_64-- -mattr=+bmi | FileCheck %s --check-prefixes=X64,X64-BMI
; TODO - PR112425 - attempt to reconstruct andnot patterns through bitwise-agnostic operations
@@ -624,3 +626,8 @@ define i8 @andnot_bitreverse_i8(i8 %a0, i8 %a1) nounwind {
%and = and i8 %bitrev, %a0
ret i8 %and
}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
+; X64-BMI: {{.*}}
+; X64-NOBMI: {{.*}}
+; X86-BMI: {{.*}}
+; X86-NOBMI: {{.*}}
More information about the llvm-commits
mailing list