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
16d5e7d5
Commit
16d5e7d5
authored
Nov 30, 2010
by
Michael Meissner
Committed by
Michael Meissner
Nov 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new FMA test case
From-SVN: r167312
parent
ca474dfe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gcc/testsuite/ChangeLog
+6
-0
gcc/testsuite/gcc.target/powerpc/ppc-fma-7.c
+18
-0
No files found.
gcc/testsuite/ChangeLog
View file @
16d5e7d5
2010
-
11
-
30
Michael
Meissner
<
meissner
@linux
.
vnet
.
ibm
.
com
>
*
gcc
.
target
/
powerpc
/
ppc
-
fma
-
7
.
c
:
New
file
,
test
that
(
a
*
b
)
+
c
and
(
a
*
b
)
-
c
generates
two
fma
instructions
,
instead
of
separate
multiply
,
add
,
and
subtract
.
2010
-
11
-
30
Tobias
Burnus
<
burnus
@net
-
b
.
de
>
*
gfortran
.
dg
/
realloc_on_assign_2
.
f03
(
invima
)
:
Assign
...
...
gcc/testsuite/gcc.target/powerpc/ppc-fma-7.c
0 → 100644
View file @
16d5e7d5
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O3 -ftree-vectorize -mcpu=power6 -ffast-math" } */
/* { dg-final { scan-assembler-times "fmadd" 1 } } */
/* { dg-final { scan-assembler-times "fmsub " 1 } } */
/* { dg-final { scan-assembler-not "fmul" } } */
/* { dg-final { scan-assembler-not "fadd " } } */
/* Check whether the common FFT idiom (a*b)+c and (a*b)-c generates two fma
instructions, instead of a multiply, add, and subtract. */
void
fft
(
double
*
result
,
double
a
,
double
b
,
double
c
)
{
result
[
0
]
=
(
a
*
b
)
+
c
;
result
[
1
]
=
(
a
*
b
)
-
c
;
}
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