Add tests for BMI patterns across non-adjacent and assosiative instructions.
authorNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 17 Jan 2023 02:50:15 +0000 (18:50 -0800)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 17 Jan 2023 06:05:47 +0000 (22:05 -0800)
commit282d5a5b063e09d059591778dd56ab351130e4d7
tree8612f4d24d208005093be96a69feeecd408af3c8
parentf4cce0f47b3e720cc6c7210b345690de210d015d
Add tests for BMI patterns across non-adjacent and assosiative instructions.

I.e for blsi match (and (sub 0, x), x) but we currently miss valid
patterns like (and (and (sub 0, x), y), x).

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D141178
llvm/test/CodeGen/X86/bmi-out-of-order.ll [new file with mode: 0644]