[clang] [llvm] [X86][APX] Emit SetZUCC instead of legacy setcc when ZU is enabled (PR #173965)
Feng Zou via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 2 07:43:25 PST 2026
================
@@ -137,11 +137,13 @@ let Predicates = [HasCMOV, HasCF] in {
}
// SetCC instructions.
-let Uses = [EFLAGS], isCodeGenOnly = 1, ForceDisassemble = 1 in {
+let Uses = [EFLAGS], isCodeGenOnly = 1, ForceDisassemble = 1, Predicates = [PreferNoSetZUCC] in {
def SETCCr : I<0x90, MRMXrCC, (outs GR8:$dst), (ins ccode:$cond),
"set${cond}\t$dst",
[(set GR8:$dst, (X86setcc timm:$cond, EFLAGS))]>,
TB, Sched<[WriteSETCC]>;
+}
+let Uses = [EFLAGS], isCodeGenOnly = 1, ForceDisassemble = 1 in {
----------------
fzou1 wrote:
Updated. Thanks.
https://github.com/llvm/llvm-project/pull/173965
More information about the cfe-commits
mailing list