aboutsummaryrefslogtreecommitdiff
path: root/tests/fp/fp-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fp/fp-test.c')
-rw-r--r--tests/fp/fp-test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c
index 36b5712..c619e5d 100644
--- a/tests/fp/fp-test.c
+++ b/tests/fp/fp-test.c
@@ -935,6 +935,15 @@ void run_test(void)
{
unsigned int i;
+ /*
+ * These implementation-defined choices for various things IEEE
+ * doesn't specify match those used by the Arm architecture.
+ */
+ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf);
+ set_float_3nan_prop_rule(float_3nan_prop_s_cab, &qsf);
+ set_float_default_nan_pattern(0b01000000, &qsf);
+ set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &qsf);
+
genCases_setLevel(test_level);
verCases_maxErrorCount = n_max_errors;