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
822f505b
Commit
822f505b
authored
18 years ago
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
18 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builtins-20.c: Add some -~ complex cases.
* gcc.dg/builtins-20.c: Add some -~ complex cases. From-SVN: r121710
parent
896b1c87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/builtins-20.c
+18
-0
No files found.
gcc/testsuite/ChangeLog
View file @
822f505b
2007
-
02
-
07
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
gcc
.
dg
/
builtins
-
20
.
c
:
Add
some
-~
complex
cases
.
2007
-
02
-
07
Hans
-
Peter
Nilsson
<
hp
@axis
.
com
>
*
lib
/
target
-
supports
.
exp
(
check_effective_target_simulator
)
:
New
.
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/builtins-20.c
View file @
822f505b
...
...
@@ -215,6 +215,12 @@ void test2(double x, double y)
if
(
ccos
(
tan
(
x
)
+
sin
(
x
-
y
)
*
1
i
)
!=
ccos
(
-
tan
(
-
x
)
-
sin
(
y
-
x
)
*
1
i
))
link_error
();
if
(
-
5
+
x
*
1
i
!=
-~
(
5
+
x
*
1
i
))
link_error
();
if
(
tan
(
x
)
+
tan
(
y
)
*
1
i
!=
-~
(
tan
(
-
x
)
+
tan
(
y
)
*
1
i
))
link_error
();
}
void
test3
(
__complex__
double
x
,
__complex__
double
y
,
int
i
)
...
...
@@ -434,6 +440,12 @@ void test2f(float x, float y)
if
(
ccosf
(
tanf
(
x
)
+
sinf
(
x
-
y
)
*
1
i
)
!=
ccosf
(
-
tanf
(
-
x
)
-
sinf
(
y
-
x
)
*
1
i
))
link_error
();
if
(
-
5
+
x
*
1
i
!=
-~
(
5
+
x
*
1
i
))
link_error
();
if
(
tanf
(
x
)
+
tanf
(
y
)
*
1
i
!=
-~
(
tanf
(
-
x
)
+
tanf
(
y
)
*
1
i
))
link_error
();
}
void
test3f
(
__complex__
float
x
,
__complex__
float
y
,
int
i
)
...
...
@@ -653,6 +665,12 @@ void test2l(long double x, long double y)
if
(
ccosl
(
tanl
(
x
)
+
sinl
(
x
-
y
)
*
1
i
)
!=
ccosl
(
-
tanl
(
-
x
)
-
sinl
(
y
-
x
)
*
1
i
))
link_error
();
if
(
-
5
+
x
*
1
i
!=
-~
(
5
+
x
*
1
i
))
link_error
();
if
(
tanl
(
x
)
+
tanl
(
y
)
*
1
i
!=
-~
(
tanl
(
-
x
)
+
tanl
(
y
)
*
1
i
))
link_error
();
}
void
test3l
(
__complex__
long
double
x
,
__complex__
long
double
y
,
int
i
)
...
...
This diff is collapsed.
Click to expand it.
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