URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
295 |
jeremybenn |
/* { dg-do compile } */
|
2 |
|
|
|
3 |
|
|
#include "dfp-dbg.h"
|
4 |
|
|
|
5 |
|
|
/* Check that the compiler generates the correct decimal float constants. */
|
6 |
|
|
|
7 |
|
|
_Decimal32 a = 100.223df;
|
8 |
|
|
_Decimal32 b = -2.3df;
|
9 |
|
|
_Decimal64 c = 3.4e-4dd;
|
10 |
|
|
_Decimal64 d = -4.500dd;
|
11 |
|
|
_Decimal128 e = 5678901234567.89e+200dl;
|
12 |
|
|
_Decimal128 f = -678901.234e-6dl;
|
13 |
|
|
|
14 |
|
|
/* The first value is DPD, the second is BID. The order differs depending
|
15 |
|
|
on whether the target is big-endian or little-endian. */
|
16 |
|
|
|
17 |
|
|
/* { dg-final { scan-assembler ".long\t(572653859|822183807)\n" } } */
|
18 |
|
|
|
19 |
|
|
/* { dg-final { scan-assembler ".long\t(-1572863965|-1308622825)\n" } } */
|
20 |
|
|
|
21 |
|
|
/* { dg-final { scan-assembler ".long\t(52|34)\n" } } */
|
22 |
|
|
/* { dg-final { scan-assembler ".long\t(572784640|824180736)\n" } } */
|
23 |
|
|
|
24 |
|
|
/* { dg-final { scan-assembler ".long\t(4736|4500)\n" } } */
|
25 |
|
|
/* { dg-final { scan-assembler ".long\t(-1574174720|-1319108608)\n" } } */
|
26 |
|
|
|
27 |
|
|
/* { dg-final { scan-assembler ".long\t(-1975952433|957645077)\n" } } */
|
28 |
|
|
/* { dg-final { scan-assembler ".long\t(190215|132222)\n" } } */
|
29 |
|
|
/* { dg-final { scan-assembler ".long\t(574193664|835452928)\n" } } */
|
30 |
|
|
|
31 |
|
|
/* { dg-final { scan-assembler ".long\t(931280180|678901234)\n" } } */
|
32 |
|
|
/* { dg-final { scan-assembler ".long\t(-1576681472|-1339162624)\n" } } */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.