ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/nvptx/recip-1.c

19 lines
274 B
C

/* { dg-do assemble } */
/* { dg-options "-O2 -save-temps" } */
double
foo (double x)
{
return 1.0 / x;
}
float
foof (float x)
{
return 1.0f / x;
}
/* { dg-final { scan-assembler-times "rcp.rn.f64" 1 } } */
/* { dg-final { scan-assembler-times "rcp.rn.f32" 1 } } */