On 8/26/23 09:02, Bastian Koppelmann wrote:
we would crash if width was 0 for these insns, as tcg_gen_deposit() is
undefined for that case. For TriCore, width = 0 is a mov from the src reg
to the dst reg, so we special case this here.

Signed-off-by: Bastian Koppelmann<kbast...@mail.uni-paderborn.de>
---
  target/tricore/translate.c          | 10 ++++++++--
  tests/tcg/tricore/asm/macros.h      | 15 +++++++++++++++
  tests/tcg/tricore/asm/test_insert.S |  9 +++++++++
  3 files changed, 32 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to