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
ff6c6aa8
Commit
ff6c6aa8
authored
Sep 07, 2002
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New tests.
From-SVN: r56924
parent
5c102b48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
gcc/testsuite/gcc.c-torture/execute/ieee/inf-1.c
+35
-0
gcc/testsuite/gcc.dg/builtin-inf-1.c
+13
-0
No files found.
gcc/testsuite/gcc.c-torture/execute/ieee/inf-1.c
0 → 100644
View file @
ff6c6aa8
extern
void
abort
(
void
);
int
main
()
{
float
fi
=
__builtin_inff
();
double
di
=
__builtin_inf
();
long
double
li
=
__builtin_infl
();
float
fh
=
__builtin_huge_valf
();
double
dh
=
__builtin_huge_val
();
long
double
lh
=
__builtin_huge_vall
();
if
(
fi
+
fi
!=
fi
)
abort
();
if
(
di
+
di
!=
di
)
abort
();
if
(
li
+
li
!=
li
)
abort
();
if
(
fi
!=
fh
)
abort
();
if
(
di
!=
dh
)
abort
();
if
(
li
!=
lh
)
abort
();
if
(
fi
<=
0
)
abort
();
if
(
di
<=
0
)
abort
();
if
(
li
<=
0
)
abort
();
return
0
;
}
gcc/testsuite/gcc.dg/builtin-inf-1.c
0 → 100644
View file @
ff6c6aa8
/* { dg-do compile } */
float
fi
=
__builtin_inff
();
double
di
=
__builtin_inf
();
long
double
li
=
__builtin_infl
();
float
fh
=
__builtin_huge_valf
();
double
dh
=
__builtin_huge_val
();
long
double
lh
=
__builtin_huge_vall
();
/* { dg-warning "does not support infinity" "INF unsupported" { target vax-*-* i370-*-* c4x-*-* } 3 } */
/* { dg-warning "does not support infinity" "INF unsupported" { target vax-*-* i370-*-* c4x-*-* } 4 } */
/* { dg-warning "does not support infinity" "INF unsupported" { target vax-*-* i370-*-* c4x-*-* } 5 } */
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