qemu/tcg
Dani Szebenyi 9a2a5f1b63 tcg/ppc: Fix tcg_out_rlw_rc
The TCG IR sequence:

  mov_i32 tmp97,$0xc4240000             dead: 1  pref=0xffffffff
  mov_i32 tmp98,$0x0                    pref=0xffffffff
  rotr_i32 tmp97,tmp97,tmp98            dead: 1 2  pref=0xffffffff

was translated to `slwi r15, r14, 0` instead of `slwi r14, r14, 0`
due to SH field overflow.  SH field is 5 bits, and tcg_out_rlw is called
in some situations with `32-n`, when `n` is 0 it results in an overflow
to RA field.

This commit prevents overflow of that field and adds debug assertions
for the other fields

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Dani Szebenyi <szedani@linux.ibm.com>
Message-ID: <20241022133535.69351-2-szedani@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2024-10-22 13:45:03 -07:00
..
aarch64
arm include/exec/memop: Rename get_alignment_bits 2024-10-13 11:27:03 -07:00
i386 tcg/i386: Implement vector TST{EQ,NE} for avx512 2024-09-22 06:54:50 +02:00
loongarch64 tcg/loongarch64: remove break after g_assert_not_reached() 2024-09-24 13:53:35 +02:00
mips
ppc tcg/ppc: Fix tcg_out_rlw_rc 2024-10-22 13:45:03 -07:00
riscv tcg/riscv: Enable native vector support for TCG host 2024-10-22 11:57:25 -07:00
s390x tcg/s390x: fix constraint for 32-bit TSTEQ/TSTNE 2024-10-17 19:41:22 +02:00
sparc64 include/exec/memop: Rename get_alignment_bits 2024-10-13 11:27:03 -07:00
tci
debuginfo.c
meson.build
optimize.c
perf.c
region.c
tcg-common.c
tcg-internal.h
tcg-ldst.c.inc
tcg-op-gvec.c
tcg-op-ldst.c include/exec/memop: Rename get_alignment_bits 2024-10-13 11:27:03 -07:00
tcg-op-vec.c
tcg-op.c
tcg-pool.c.inc
tcg.c tcg: Reset data_gen_ptr correctly 2024-10-22 11:57:25 -07:00
tci.c