[llvm] [X86] Invert (and X, ~(and ~Y, Z)) back into (and X, (or Y, ~Z)) (PR #109215)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 06:42:47 PDT 2024
================
@@ -0,0 +1,40 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=x86_64-gnu-unknown -mcpu=znver3 | FileCheck %s
----------------
RKSimon wrote:
Make test more generic - replace znver3 with x86-64-v3 and add a x86-64-v2 test for case without BMI1 support:
```
RUN: llc < %s -mtriple=x86_64-- -mcpu=x84-64-v2 | FileCheck %s --check-prefixes=CHECK,NOBMI
RUN: llc < %s -mtriple=x86_64-- -mcpu=x84-64-v3 | FileCheck %s --check-prefixes=CHECK,BMI
```
https://github.com/llvm/llvm-project/pull/109215
More information about the llvm-commits
mailing list