target/ppc: Merge COMPUTE_CLASS and COMPUTE_FPRF
commit03ec9d9d22bb7ec81f35c1c34249d2989e7a74b4
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 23 May 2023 20:25:07 +0000 (23 13:25 -0700)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Sun, 28 May 2023 10:13:54 +0000 (28 07:13 -0300)
tree418876bc30560ae3aeaded0556c68263e0434e1a
parent76f9ebffcd41b62ae9ec26a1c25676f2ae1d9cc3
target/ppc: Merge COMPUTE_CLASS and COMPUTE_FPRF

Instead of computing an artificial "class" bitmask then converting that
to the fprf value, compute the final value from the start.

Reorder the tests to check the most likely cases first.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230523202507.688859-1-richard.henderson@linaro.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/fpu_helper.c