Skip to contentSkip to conversation

target/i386/tcg: compute C of CC_OP_ADOX without going through helper

PATCH In review Paolo Bonzini 2 participants 2 messages Sep 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386/tcg: compute C of CC_OP_ADOX without going through helper

With the CC_OP_ADOX cc_op, the carry flag remains in CC_SRC just like with CC_OP_EFLAGS. Add CC_OP_ADOX to the same gen_prepare_eflags_c fast path as CC_OP_EFLAGS, to avoid generating a helper call.

---
 target/i386/tcg/translate.c | 1 +
 1 file changed, 1 insertion(+)
target/i386/tcg/translate.c +1 -0
index d8de290acb6..d13e8cdf3f0 100644
@@ -924,6 +924,7 @@ static CCPrepare gen_prepare_eflags_c(DisasContext *s, TCGv reg)
                              .rhs_type = CC_PREPARE_DIRECT };
 
     case CC_OP_EFLAGS:
+    case CC_OP_ADOX:
     case CC_OP_SARB ... CC_OP_SARQ:
         /* CC_SRC & 1 */
         return (CCPrepare) { .cond = TCG_COND_TSTNE,
Signature · 1 line
2.55.0