[llvm] [AArch64] Match BSP through trunc(and) canonicalization in OR combine (PR #198277)

Rajveer Singh Bharadwaj via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 06:13:19 PDT 2026


================

----------------
Rajveer100 wrote:

Unless I missed, we need test cases for:

```
(or (trunc (and B A)) (and C (xor (trunc A) -1)))
(or (trunc (and B A)) (and C (xor (trunc B) -1)))
(or (trunc (and A B)) (and C (xor (trunc B) -1)))
```

and other similar ones.

https://github.com/llvm/llvm-project/pull/198277


More information about the llvm-commits mailing list