2 /* { dg-options "-std=gnu99 -O0" } */
4 /* C99 6.5.8 Relational operators.
5 Compare decimal float values against variables of different types. */
7 extern void abort (void);
10 /* Support compiling the test to report individual failures; default is
11 to abort as soon as a check fails. */
14 #define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
16 #define FAILURE abort ();
23 /* Use some typedefs of decimal float types, too. */
24 typedef _Decimal32 SDtype;
25 typedef _Decimal64 DDtype;
26 typedef _Decimal128 TDtype;
46 if ((d32 > d64) != 0) FAILURE
47 if ((d32 >= d128b) != 1) FAILURE
49 if ((d64 < d32) != 0) FAILURE
50 if ((d64 <= d128) != 1) FAILURE
52 if ((d128 > d32) != 1) FAILURE
53 if ((d128 >= d64) != 1) FAILURE