OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [hex-round-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test for hexadecimal float rounding: bug 21720.  Test with no "."
2
   in number.  */
3
/* { dg-do link } */
4
/* { dg-options "-O -std=gnu99" } */
5
/* { dg-skip-if "SPU float rounds towards zero" { spu-*-* } } */
6
 
7
#include <float.h>
8
 
9
extern void link_failure (void);
10
 
11
int
12
main (void)
13
{
14
#if FLT_RADIX == 2 && FLT_MANT_DIG == 24
15
  if (0x10000011p-28f == 1)
16
    link_failure ();
17
  if (0x100000101p-32f == 1)
18
    link_failure ();
19
  if (0x1000001001p-36f == 1)
20
    link_failure ();
21
  if (0x10000010001p-40f == 1)
22
    link_failure ();
23
  if (0x100000100001p-44f == 1)
24
    link_failure ();
25
  if (0x1000001000001p-48f == 1)
26
    link_failure ();
27
  if (0x10000010000001p-52f == 1)
28
    link_failure ();
29
  if (0x100000100000001p-56f == 1)
30
    link_failure ();
31
  if (0x1000001000000001p-60f == 1)
32
    link_failure ();
33
  if (0x10000010000000001p-64f == 1)
34
    link_failure ();
35
  if (0x100000100000000001p-68f == 1)
36
    link_failure ();
37
  if (0x1000001000000000001p-72f == 1)
38
    link_failure ();
39
  if (0x10000010000000000001p-76f == 1)
40
    link_failure ();
41
  if (0x100000100000000000001p-80f == 1)
42
    link_failure ();
43
  if (0x1000001000000000000001p-84f == 1)
44
    link_failure ();
45
  if (0x10000010000000000000001p-88f == 1)
46
    link_failure ();
47
  if (0x100000100000000000000001p-92f == 1)
48
    link_failure ();
49
  if (0x1000001000000000000000001p-96f == 1)
50
    link_failure ();
51
  if (0x10000010000000000000000001p-100f == 1)
52
    link_failure ();
53
  if (0x100000100000000000000000001p-104f == 1)
54
    link_failure ();
55
  if (0x1000001000000000000000000001p-108f == 1)
56
    link_failure ();
57
  if (0x10000010000000000000000000001p-112f == 1)
58
    link_failure ();
59
  if (0x100000100000000000000000000001p-116f == 1)
60
    link_failure ();
61
  if (0x1000001000000000000000000000001p-120f == 1)
62
    link_failure ();
63
  if (0x10000010000000000000000000000001p-124f == 1)
64
    link_failure ();
65
  if (0x100000100000000000000000000000001p-128f == 1)
66
    link_failure ();
67
  if (0x1000001000000000000000000000000001p-132f == 1)
68
    link_failure ();
69
  if (0x10000010000000000000000000000000001p-136f == 1)
70
    link_failure ();
71
  if (0x100000100000000000000000000000000001p-140f == 1)
72
    link_failure ();
73
  if (0x1000001000000000000000000000000000001p-144f == 1)
74
    link_failure ();
75
  if (0x10000010000000000000000000000000000001p-148f == 1)
76
    link_failure ();
77
  if (0x100000100000000000000000000000000000001p-152f == 1)
78
    link_failure ();
79
  if (0x1000001000000000000000000000000000000001p-156f == 1)
80
    link_failure ();
81
  if (0x10000010000000000000000000000000000000001p-160f == 1)
82
    link_failure ();
83
  if (0x100000100000000000000000000000000000000001p-164f == 1)
84
    link_failure ();
85
  if (0x1000001000000000000000000000000000000000001p-168f == 1)
86
    link_failure ();
87
  if (0x10000010000000000000000000000000000000000001p-172f == 1)
88
    link_failure ();
89
  if (0x100000100000000000000000000000000000000000001p-176f == 1)
90
    link_failure ();
91
  if (0x1000001000000000000000000000000000000000000001p-180f == 1)
92
    link_failure ();
93
  if (0x10000010000000000000000000000000000000000000001p-184f == 1)
94
    link_failure ();
95
  if (0x100000100000000000000000000000000000000000000001p-188f == 1)
96
    link_failure ();
97
  if (0x1000001000000000000000000000000000000000000000001p-192f == 1)
98
    link_failure ();
99
  if (0x10000010000000000000000000000000000000000000000001p-196f == 1)
100
    link_failure ();
101
  if (0x100000100000000000000000000000000000000000000000001p-200f == 1)
102
    link_failure ();
103
  if (0x1000001000000000000000000000000000000000000000000001p-204f == 1)
104
    link_failure ();
105
  if (0x10000010000000000000000000000000000000000000000000001p-208f == 1)
106
    link_failure ();
107
  if (0x100000100000000000000000000000000000000000000000000001p-212f == 1)
108
    link_failure ();
109
  if (0x1000001000000000000000000000000000000000000000000000001p-216f == 1)
110
    link_failure ();
111
  if (0x10000010000000000000000000000000000000000000000000000001p-220f == 1)
112
    link_failure ();
113
#endif
114
  return 0;
115
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.