target/sparc: Fix ARRAY8
commitfa9079a86d94c202c316c97ca2eb61ca3e763907
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 25 May 2024 02:23:11 +0000 (24 19:23 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 5 Jun 2024 16:05:10 +0000 (5 09:05 -0700)
tree0763e89a6387f9063910ea4dcb1bf164c8c46395
parente6e903db6a5e960e595f9f1fd034adb942dd9508
target/sparc: Fix ARRAY8

Follow the Oracle Sparc 2015 implementation note and bound
the input value of N to 5 from the lower 3 bits of rs2.
Spell out all of the intermediate values, matching the diagram
in the manual.  Fix extraction of upper_x and upper_y for N=0.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/sparc/vis_helper.c