3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
8 * This file is originally a part of the GCC testsuite.
17 #if CONFIG_POST & CONFIG_SYS_POST_FPU
19 int fpu_post_test_math3 (void)
21 volatile long double dfrom = 1.1;
22 volatile long double m1;
23 volatile long double m2;
24 volatile unsigned long mant_long;
27 m2 = m1 * 4294967296.0;
28 mant_long = ((unsigned long) m2) & 0xffffffff;
30 if (mant_long != 0x8ccccccc) {
31 post_log ("Error in FPU math3 test\n");
37 #endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */