]> git.proxmox.com Git - mirror_qemu.git/commit
tcg/s390x: Implement TCG_TARGET_HAS_sat_vec
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 15 Sep 2020 03:17:29 +0000 (20:17 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 5 Oct 2021 23:53:17 +0000 (16:53 -0700)
commit4223c9c1c6358f65fb2df2708c86f95faf235e30
treeb781f49f3a7c1d869780bba6796b471eb9948e6e
parent220db7a6c461d9e33a50134f72a2e0cb3c6c5e62
tcg/s390x: Implement TCG_TARGET_HAS_sat_vec

The unsigned saturations are handled via generic code
using min/max.  The signed saturations are expanded using
double-sized arithmetic and a saturating pack.

Since all operations are done via expansion, do not
actually set TCG_TARGET_HAS_sat_vec.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/s390x/tcg-target.c.inc
tcg/s390x/tcg-target.opc.h