Skip to content

Commit 7da0a69

Browse files
committed
[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
1 parent 3a91611 commit 7da0a69

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

llvm/test/CodeGen/X86/andnot-patterns.ll

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc < %s -mtriple=i686-- -mattr=+bmi | FileCheck %s --check-prefixes=X86
3-
; RUN: llc < %s -mtriple=x86_64-- -mattr=+bmi | FileCheck %s --check-prefixes=X64
2+
; RUN: llc < %s -mtriple=i686-- -mattr=-bmi | FileCheck %s --check-prefixes=X86,X86-NOBMI
3+
; RUN: llc < %s -mtriple=i686-- -mattr=+bmi | FileCheck %s --check-prefixes=X86,X86-BMI
4+
; RUN: llc < %s -mtriple=x86_64-- -mattr=-bmi | FileCheck %s --check-prefixes=X64,X64-NOBMI
5+
; RUN: llc < %s -mtriple=x86_64-- -mattr=+bmi | FileCheck %s --check-prefixes=X64,X64-BMI
46

57
; TODO - PR112425 - attempt to reconstruct andnot patterns through bitwise-agnostic operations
68

@@ -624,3 +626,8 @@ define i8 @andnot_bitreverse_i8(i8 %a0, i8 %a1) nounwind {
624626
%and = and i8 %bitrev, %a0
625627
ret i8 %and
626628
}
629+
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
630+
; X64-BMI: {{.*}}
631+
; X64-NOBMI: {{.*}}
632+
; X86-BMI: {{.*}}
633+
; X86-NOBMI: {{.*}}

0 commit comments

Comments
 (0)