target/s390x: Use a single return for helper_divs64/u64
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 19 Oct 2022 23:08:52 +0000 (09:08 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Feb 2023 16:19:42 +0000 (06:19 -1000)
commit4e5712f9037c34bbd9ffd78baa9d1ebea13a430d
treef8eb05d0c523dac92f5f3f1f2e3ebb9091ddf4a4
parent6d28ff406c71c2c6f8a79edb1ccfc17978aa95fb
target/s390x: Use a single return for helper_divs64/u64

Pack the quotient and remainder into a single Int128.
Use the divu128 primitive to remove the cpu_abort on
32-bit hosts.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v2: Extended div test case to cover these insns.
target/s390x/helper.h
target/s390x/tcg/int_helper.c
target/s390x/tcg/translate.c
tests/tcg/s390x/div.c