OSDN Git Service

tcg: Adjust simd_desc size encoding
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 30 Aug 2020 15:57:20 +0000 (08:57 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Oct 2020 10:57:32 +0000 (05:57 -0500)
commite2e7168a214b0ed98dc357bba96816486a289762
treeda936e20dd164e5997a49cca286266d85ad54cd8
parent6eeea6725a70e6fcb5abba0764496bdab07ddfb3
tcg: Adjust simd_desc size encoding

With larger vector sizes, it turns out oprsz == maxsz, and we only
need to represent mismatch for oprsz <= 32.  We do, however, need
to represent larger oprsz and do so without reducing SIMD_DATA_BITS.

Reduce the size of the oprsz field and increase the maxsz field.
Steal the oprsz value of 24 to indicate equality with maxsz.

Tested-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg-gvec-desc.h
tcg/tcg-op-gvec.c