]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386: avoid trunc and ext for MULX and RORX
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Oct 2023 16:25:40 +0000 (18:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Dec 2023 21:03:08 +0000 (22:03 +0100)
commit6dd2afed55320eef86873531fe05185be750727f
tree2e6a013758287a6720df2af8262c5dcafbd29fc7
parentb609db947752f0cc48471127d2abaff444dc836b
target/i386: avoid trunc and ext for MULX and RORX

Use _tl operations for 32-bit operands on 32-bit targets, and only go
through trunc and extu ops for 64-bit targets.  While the trunc/ext
ops should be pretty much free after optimization, the optimizer also
does not like having the same temporary used in multiple EBBs.
Therefore it is nicer to not use tmpN* unless necessary.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/emit.c.inc