On 2/2/23 02:04, Bastian Koppelmann wrote:
if we used const16 == 0 we would crash qemu with the error:
../tcg/tcg-op.c:196: tcg_gen_shri_i32: Assertion `arg2 >= 0 && arg2 < 32' failed

This whole instruction can be handled by 'tcg_gen_extract2_tl' which
takes care of this special case as well.

Signed-off-by: Bastian Koppelmann<kbast...@mail.uni-paderborn.de>
---
v1 -> v2:
    Use tcg_gen_extract2_tl and remove all special cases.

  target/tricore/translate.c | 12 +++---------
  1 file changed, 3 insertions(+), 9 deletions(-)

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

r~

Reply via email to