repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libstdc++: Make some _Hashtable members inline
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
dfp
/
bid-non-canonical-d32-1.c
blob
b5f45b374b7381f7c91e9afa2879bbc238d32249
1
/* Test non-canonical BID significands: _Decimal32. 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
_Decimal32 d32
;
11
unsigned int
u32
;
12
};
13
14
int
15
main
(
void
)
16
{
17
union
u x
;
18
_Decimal32 d32
;
19
x
.
u32
=
0x6cb89681
U
;
20
d32
=
x
.
d32
;
21
volatile
double
d
=
d32
;
22
if
(
d
==
0
)
23
exit
(
0
);
24
else
25
abort
();
26
}