1 // SPDX-License-Identifier: GPL-2.0+
3 #include <linux/errno.h>
10 * This sequence of operations tests that rounding mode is
11 * to nearest and that denormal numbers are supported.
12 * Volatile variables are used to avoid compiler optimizing
13 * the calculations away.
15 volatile double a, b, c, d, e, f, g;
21 /* Sets precision flag */
24 /* Result depends on rounding mode */
27 /* Denormal and very large values */
30 /* Depends on denormal support */
33 if (d > a && e > a && g > a)