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

12 lines
327 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/* Tests if we generate rsub instructions when compiling using
floating point assist instructions. */
/* { dg-do compile } */
/* { dg-skip-if "" { ! { clmcpu } } } */
/* { dg-options "-mfpu=fpuda -mcpu=arcem" } */
double foo (double a)
{
return ((double) 0.12 - a);
}
/* { dg-final { scan-assembler-not "drsub.*" } } */