diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-23 09:39:08 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-11 14:29:22 +0200 |
commit | cc155f19717ced44d70df3cd5f149a5b9f9a13f1 (patch) | |
tree | 563f08d7d674949d29869ab03aea41c9d1141c17 /stubs | |
parent | 4228eb8cc6ba44d35cd52b05508a47e780668051 (diff) |
target/i386: rewrite flags writeback for ADCX/ADOX
Avoid using set_cc_op() in preparation for implementing APX; treat
CC_OP_EFLAGS similar to the case where we have the "opposite" cc_op
(CC_OP_ADOX for ADCX and CC_OP_ADCX for ADOX), except the resulting
cc_op is not CC_OP_ADCOX. This is written easily as two "if"s, whose
conditions are both false for CC_OP_EFLAGS, both true for CC_OP_ADCOX,
and one each true for CC_OP_ADCX/ADOX.
The new logic also makes it easy to drop usage of tmp0.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
0 files changed, 0 insertions, 0 deletions