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
05130a3d
Commit
05130a3d
authored
Oct 14, 2009
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Oct 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complex_intrinsic_8.f90: New test.
* gfortran.dg/complex_intrinsic_8.f90: New test. From-SVN: r152748
parent
7610abd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gfortran.dg/complex_intrinsic_8.f90
+50
-0
No files found.
gcc/testsuite/ChangeLog
View file @
05130a3d
2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gfortran.dg/complex_intrinsic_8.f90: New test.
2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/torture/builtin-math-6.c: Test complex "arc" functions.
* lib/target-supports.exp (check_effective_target_mpc_arc): New.
...
...
gcc/testsuite/gfortran.dg/complex_intrinsic_8.f90
0 → 100644
View file @
05130a3d
! { dg-do link }
! { dg-require-effective-target mpc_arc }
!
! PR fortran/33197
!
! Fortran complex trigonometric functions: acos, asin, atan, acosh, asinh, atanh
!
! Compile-time simplifications
!
implicit
none
real
(
4
),
parameter
::
pi
=
2
*
acos
(
0.0_4
)
real
(
8
),
parameter
::
pi8
=
2
*
acos
(
0.0_8
)
real
(
4
),
parameter
::
eps
=
10
*
epsilon
(
0.0_4
)
real
(
8
),
parameter
::
eps8
=
10
*
epsilon
(
0.0_8
)
complex
(
4
),
parameter
::
z0_0
=
cmplx
(
0.0_4
,
0.0_4
,
kind
=
4
)
complex
(
4
),
parameter
::
z1_1
=
cmplx
(
1.0_4
,
1.0_4
,
kind
=
4
)
complex
(
8
),
parameter
::
z80_0
=
cmplx
(
0.0_8
,
0.0_8
,
kind
=
8
)
complex
(
8
),
parameter
::
z81_1
=
cmplx
(
1.0_8
,
1.0_8
,
kind
=
8
)
if
(
abs
(
acos
(
z0_0
)
-
cmplx
(
pi
/
2
,
-0.0
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
acos
(
z1_1
)
-
cmplx
(
0.904556894
,
-1.06127506
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
acos
(
z80_0
)
-
cmplx
(
pi8
/
2
,
-0.0_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
acos
(
z81_1
)
-
cmplx
(
0.90455689430238140_8
,
-1.0612750619050357_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
asin
(
z0_0
)
-
cmplx
(
0.0
,
0.0
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
asin
(
z1_1
)
-
cmplx
(
0.66623943
,
1.06127506
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
asin
(
z80_0
)
-
cmplx
(
0.0_8
,
0.0_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
asin
(
z81_1
)
-
cmplx
(
0.66623943249251527_8
,
1.0612750619050357_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
atan
(
z0_0
)
-
cmplx
(
0.0
,
0.0
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
atan
(
z1_1
)
-
cmplx
(
1.01722196
,
0.40235947
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
atan
(
z80_0
)
-
cmplx
(
0.0_8
,
0.0_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
atan
(
z81_1
)
-
cmplx
(
1.0172219678978514_8
,
0.40235947810852507_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
acosh
(
z0_0
)
-
cmplx
(
0.0
,
pi
/
2
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
acosh
(
z1_1
)
-
cmplx
(
1.06127506
,
0.90455689
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
acosh
(
z80_0
)
-
cmplx
(
0.0_8
,
pi8
/
2
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
acosh
(
z81_1
)
-
cmplx
(
1.0612750619050357_8
,
0.90455689430238140_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
asinh
(
z0_0
)
-
cmplx
(
0.0
,
0.0
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
asinh
(
z1_1
)
-
cmplx
(
1.06127506
,
0.66623943
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
asinh
(
z80_0
)
-
cmplx
(
0.0_8
,
0.0_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
asinh
(
z81_1
)
-
cmplx
(
1.0612750619050357_8
,
0.66623943249251527_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
atanh
(
z0_0
)
-
cmplx
(
0.0
,
0.0
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
atanh
(
z1_1
)
-
cmplx
(
0.40235947
,
1.01722196
,
4
))
>
eps
)
call
link_error
()
if
(
abs
(
atanh
(
z80_0
)
-
cmplx
(
0.0_8
,
0.0_8
,
8
))
>
eps8
)
call
link_error
()
if
(
abs
(
atanh
(
z81_1
)
-
cmplx
(
0.40235947810852507_8
,
1.0172219678978514_8
,
8
))
>
eps8
)
call
link_error
()
end
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