Merge with trank @ 137446
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr32268.c
bloba5d673ad94f4bf2b783fae1e7eba28e213e347fc
1 /* { dg-do run { target *-*-linux* } } */
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;