[X86] Add test showing poor bitselect between constants on BMI targets
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 26 Feb 2023 15:31:58 +0000 (15:31 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 26 Feb 2023 15:32:04 +0000 (15:32 +0000)
commit96aa76aa716d577d31a2831c8d3a85ddd6b3de80
treec2338b38e5e6be971da3a19cddfb335b2ded6998
parent02828abd084536bb758d65043e9747dc2f0e990c
[X86] Add test showing poor bitselect between constants on BMI targets

bitselect(52,-6553,m) -> xor(and(xor(52,-6553),m),52) folds much better than or(and(52,not(m)),and(-6553,m))
llvm/test/CodeGen/X86/bitselect.ll