2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr32268.c
blob66ed5061947faf487f57cf09c790188025232591
1 /* { dg-do run { target *-*-linux* *-*-gnu* } } */
2 /* { dg-options "-O2" } */
4 extern void abort(void);
6 int __attribute__ ((__noinline__))
7 test_lt(__float128 x, __float128 y)
9 return x < y;
12 int __attribute__ ((__noinline__))
13 test_gt (__float128 x, __float128 y)
15 return x > y;
18 int main()
20 __float128 a = 0.0;
21 __float128 b = 1.0;
23 int r;
25 r = test_lt (a, b);
26 if (r != ((double) a < (double) b))
27 abort();
29 r = test_gt (a, b);
30 if (r != ((double) a > (double) b))
31 abort();
33 return 0;