Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr56321.c
blob: a8c46346595a0be331920e9f572de32275c1aaf7 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-ffast-math" } */
void
foo
(
int
n
,
int
nreps
,
float
tdgefa
,
float
tdgesl
)
{
float
kflops
,
ops
;
ops
=((
2.0
*
n
*
n
*
n
)/
3.0
+
2.0
*
n
*
n
);
kflops
=
2.
*
nreps
*
ops
/(
1000.
*(
tdgefa
+
tdgesl
));
__builtin_printf
(
"%f\n"
,
kflops
);
}