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