1 // SPDX-License-Identifier: GPL-2.0+
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 * This file is originally a part of the GCC testsuite.
16 #if CONFIG_POST & CONFIG_SYS_POST_FPU
18 static double func (const double *array)
25 return d + func (array + 1);
28 int fpu_post_test_math5 (void)
30 double values[] = { 0.1e-100, 1.0, -1.0, 0.0 };
32 if (func (values) != 0.1e-100) {
33 post_log ("Error in FPU math5 test\n");
39 #endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */