Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
fdc7e5d0
Commit
fdc7e5d0
authored
Nov 10, 2004
by
Fariborz Jahanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for PR tree-optimization/17892.
From-SVN: r90447
parent
9e5712a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
gcc/testsuite/gcc.c-torture/execute/ieee/unsafe-fp-assoc-1.c
+37
-0
No files found.
gcc/testsuite/gcc.c-torture/execute/ieee/unsafe-fp-assoc-1.c
0 → 100644
View file @
fdc7e5d0
extern
void
abort
();
typedef
union
{
struct
{
unsigned
int
hi
;
unsigned
int
lo
;
}
i
;
double
d
;
}
hexdouble
;
static
const
double
twoTo52
=
0x1
.
0
p
+
52
;
void
func
(
double
x
)
{
hexdouble
argument
;
register
double
y
,
z
;
unsigned
int
xHead
;
argument
.
d
=
x
;
xHead
=
argument
.
i
.
hi
&
0x7fffffff
;
if
(
__builtin_expect
(
!!
(
xHead
<
0x43300000u
),
1
))
{
y
=
(
x
-
twoTo52
)
+
twoTo52
;
if
(
y
!=
x
)
abort
();
z
=
x
-
0
.
5
;
y
=
(
z
-
twoTo52
)
+
twoTo52
;
if
(
y
==
((
x
-
twoTo52
)
+
twoTo52
)
)
abort
();
}
return
;
}
int
main
()
{
func
((
double
)
1
.
00
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment