Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr32268.c
blob472259c1ebacfd4811d0f78d66195c2bc78d8fb6
1 /* { dg-do run { target *-*-linux* } } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2" } */
5 extern void abort(void);
7 int __attribute__ ((__noinline__))
8 test_lt(__float128 x, __float128 y)
10 return x < y;
13 int __attribute__ ((__noinline__))
14 test_gt (__float128 x, __float128 y)
16 return x > y;
19 int main()
21 __float128 a = 0.0;
22 __float128 b = 1.0;
24 int r;
26 r = test_lt (a, b);
27 if (r != ((double) a < (double) b))
28 abort();
30 r = test_gt (a, b);
31 if (r != ((double) a > (double) b))
32 abort();
34 return 0;