Debian Codegraph @

gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c

raw
1 /* Test non-canonical BID significands: _Decimal64. Bug 91226. */
2 /* { dg-require-effective-target dfp_bid } */
3 /* { dg-options "-std=gnu23 -O2" } */
4
5 extern void abort (void);
6 extern void exit (int);
7
8 union u
9 {
10 _Decimal64 d64;
11 unsigned long long int u64;
12 };
13
14 int
15 main (void)
16 {
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 ();
26 }