qemu/tcg/i386
Richard Henderson 312b426fea tcg/i386: Bound shift count expanding sari_vec
A given RISU testcase for SVE can produce

tcg-op-vec.c:511: do_shifti: Assertion `i >= 0 && i < (8 << vece)' failed.

because expand_vec_sari gave a shift count of 32 to a MO_32
vector shift.

In 44f1441dbe, we changed from direct expansion of vector opcodes
to re-use of the tcg expanders.  So while the comment correctly notes
that the hw will handle such a shift count, we now have to take our
own sanity checks into account.  Which is easy in this particular case.

Fixes: 44f1441dbe
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2020-03-17 08:41:07 -07:00
..
tcg-target.h tcg: Search includes from the project root source directory 2020-01-15 15:13:10 -10:00
tcg-target.inc.c tcg/i386: Bound shift count expanding sari_vec 2020-03-17 08:41:07 -07:00
tcg-target.opc.h tcg/i386/tcg-target.opc.h: Add copyright/license 2019-11-11 15:11:21 +01:00