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
313c9c54
Commit
313c9c54
authored
Aug 04, 2002
by
Roger Sayle
Committed by
Roger Sayle
Aug 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/builtins-1.c: New testcase.
From-SVN: r56012
parent
e34eaae5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/builtins-1.c
+28
-0
No files found.
gcc/testsuite/ChangeLog
View file @
313c9c54
2002-08-03 Roger Sayle <roger@eyesopen.com>
* gcc.dg/builtins-1.c: New testcase.
2002-08-02 Mark Mitchell <mark@codesourcery.com>
* g++.dg/inherit/access3.C: New test.
...
...
gcc/testsuite/gcc.dg/builtins-1.c
0 → 100644
View file @
313c9c54
/* Copyright (C) 2002 Free Software Foundation.
Verify that all the __builtin_ math functions are recognized
by the compiler.
Written by Roger Sayle, 11th July 2002. */
/* { dg-do compile } */
/* { dg-final { scan-assembler-not "__builtin_" } } */
double
test1
(
double
x
)
{
return
__builtin_sqrt
(
x
);
}
double
test2
(
double
x
)
{
return
__builtin_cos
(
x
);
}
double
test3
(
double
x
)
{
return
__builtin_sin
(
x
);
}
double
test4
(
double
x
)
{
return
__builtin_exp
(
x
);
}
double
test5
(
double
x
)
{
return
__builtin_log
(
x
);
}
float
test1f
(
float
x
)
{
return
__builtin_sqrtf
(
x
);
}
float
test2f
(
float
x
)
{
return
__builtin_cosf
(
x
);
}
float
test3f
(
float
x
)
{
return
__builtin_sinf
(
x
);
}
float
test4f
(
float
x
)
{
return
__builtin_expf
(
x
);
}
float
test5f
(
float
x
)
{
return
__builtin_logf
(
x
);
}
long
double
test1l
(
long
double
x
)
{
return
__builtin_sqrtl
(
x
);
}
long
double
test2l
(
long
double
x
)
{
return
__builtin_cosl
(
x
);
}
long
double
test3l
(
long
double
x
)
{
return
__builtin_sinl
(
x
);
}
long
double
test4l
(
long
double
x
)
{
return
__builtin_expl
(
x
);
}
long
double
test5l
(
long
double
x
)
{
return
__builtin_logl
(
x
);
}
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