[llvm] [X86] Select ANDN for i8 operands (PR #205050)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 06:53:04 PDT 2026
================
@@ -1394,6 +1394,14 @@ defm ANDN64 : AndN<Xi64, null_frag, "_NF">, EVEX, EVEX_NF, Requires<[In64BitMode
}
multiclass Andn_Pats<string suffix> {
+ // ANDN has only GR32/GR64 forms; widen i8 inputs to i32 and extract the low
+ // byte. Upper bits are ignored by the result extraction.
+ def : Pat<(and (not GR8:$src1), GR8:$src2),
----------------
mygitljf wrote:
Thanks. I agree the broad GR8 pattern is not the right direction here, since it can involve AH/BH/CH/DH in 32-bit mode.
https://github.com/llvm/llvm-project/pull/205050
More information about the llvm-commits
mailing list