summaryrefslogtreecommitdiffstats
path: root/tests/fp
diff options
context:
space:
mode:
authorRichard Henderson2020-11-22 02:32:01 +0100
committerRichard Henderson2021-06-03 23:09:02 +0200
commit7ccae4ce7e4bb7c2f873986b6b6b0fc680e0a8bd (patch)
treebc4dadd929478bf720bebb41d847560d4f4a36e1 /tests/fp
parentsoftfloat: Adjust parts_uncanon_normal for floatx80 (diff)
downloadqemu-7ccae4ce7e4bb7c2f873986b6b6b0fc680e0a8bd.tar.gz
qemu-7ccae4ce7e4bb7c2f873986b6b6b0fc680e0a8bd.tar.xz
qemu-7ccae4ce7e4bb7c2f873986b6b6b0fc680e0a8bd.zip
tests/fp/fp-test: Reverse order of floatx80 precision tests
Many qemu softfloat will check floatx80_rounding_precision even when berkeley testfloat will not. So begin with floatx80_precision_x, so that's the one we use when !FUNC_EFF_ROUNDINGPRECISION. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/fp')
-rw-r--r--tests/fp/fp-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c
index 1be3a9788a..352dd71c44 100644
--- a/tests/fp/fp-test.c
+++ b/tests/fp/fp-test.c
@@ -963,16 +963,16 @@ static void QEMU_NORETURN run_test(void)
verCases_usesExact = !!(attrs & FUNC_ARG_EXACT);
for (k = 0; k < 3; k++) {
- FloatX80RoundPrec qsf_prec80 = floatx80_precision_s;
- int prec80 = 32;
+ FloatX80RoundPrec qsf_prec80 = floatx80_precision_x;
+ int prec80 = 80;
int l;
if (k == 1) {
prec80 = 64;
qsf_prec80 = floatx80_precision_d;
} else if (k == 2) {
- prec80 = 80;
- qsf_prec80 = floatx80_precision_x;
+ prec80 = 32;
+ qsf_prec80 = floatx80_precision_s;
}
verCases_roundingPrecision = 0;