ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/arc/fma-1.c

14 lines
351 B
C

/* { dg-do compile } */
/* { dg-skip-if "FPU not available" { arc700 || arc6xx } } */
/* { dg-options "-s -std=gnu11 -O2 -frounding-math -mfpu=fpus_all" } */
const float a, b = 7.8539818525e01;
/* Check if the fma operation is generated correctly. */
int foo (void)
{
return (float)3.0 * b + a;
}
/* { dg-final { scan-assembler "fsmadd" } } */