target/i386: introduce gen_lea_ss_ofs
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Apr 2024 14:58:15 +0000 (16:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 25 May 2024 11:28:01 +0000 (13:28 +0200)
commitf0e754d3ce52b25e6bea0ff04cecd8f0b111c1d6
tree0c2d6d470a696262d822f73886f44534ef529936
parent20237d4070e8fc5dae743f0286dda11375b7c474
target/i386: introduce gen_lea_ss_ofs

Generalize gen_stack_A0() to include an initial add and to use an arbitrary
destination.  This is a common pattern and it is not a huge burden to
add the extra arguments to the only caller of gen_stack_A0().

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