Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/20160404-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 | |
3 typedef __UINT64_TYPE__ UINT64; | |
4 typedef union { | |
5 struct { | |
6 unsigned short lo4; | |
7 unsigned short lo3; | |
8 unsigned short lo2; | |
9 unsigned short lo1; | |
10 } i; | |
11 long double f; | |
12 } BID_BINARY80LDOUBLE; | |
13 UINT64 __binary80_to_bid32 (long double x) | |
14 { | |
15 BID_BINARY80LDOUBLE x_in; | |
16 x_in.f = x; | |
17 return (x_in.i.lo4 | |
18 + ((UINT64)x_in.i.lo3 << 16) | |
19 + ((UINT64)x_in.i.lo2 << 32) | |
20 + ((UINT64)x_in.i.lo1 << 48)); | |
21 } |