[PR target/115123] Fix testsuite fallout from sinking heuristic change
[official-gcc.git] / gcc / testsuite / gcc.dg / dfp / bid-non-canonical-d64-1.c
blobd48d83079dc43deaaa52aa33cd6ded76782d1102
1 /* Test non-canonical BID significands: _Decimal64. Bug 91226. */
2 /* { dg-require-effective-target dfp_bid } */
3 /* { dg-options "-std=gnu23 -O2" } */
5 extern void abort (void);
6 extern void exit (int);
8 union u
10 _Decimal64 d64;
11 unsigned long long int u64;
14 int
15 main (void)
17 union u x;
18 _Decimal64 d64;
19 x.u64 = 0x6c7386f26fc10001ULL;
20 d64 = x.d64;
21 volatile double d = d64;
22 if (d == 0)
23 exit (0);
24 else
25 abort ();