1 // { dg-do run }
2 // { dg-options "-O1" }
3
4 static int
5 foo(_Decimal128 x, _Decimal128 y)
6 {
7 if (x > y)
8 return 1;
9
10 return 0;
11 }
12
13 int __attribute__((noinline))
14 bar(_Decimal128 x)
15 {
16 return foo (x, -1.0DL * __builtin_infd32());
17 }
18
19 int
20 main (void)
21 {
22 int res = bar (0.0DL);
23 if (res != 1)
24 __builtin_abort ();
25
26 return 0;
27 }