ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/sh/pr33135-1.c

31 lines
501 B
C

/* Check that fcmp/eq and fcmp/gt instructions are generated by default
(implicit -mieee). */
/* { dg-do compile { target { any_fpu } } } */
/* { dg-options "-O1" } */
/* { dg-final { scan-assembler-times "fcmp/eq" 4 } } */
/* { dg-final { scan-assembler-times "fcmp/gt" 4 } } */
int
test_00 (float a, float b)
{
return a <= b;
}
int
test_01 (float a, float b)
{
return a >= b;
}
int
test_02 (double a, double b)
{
return a <= b;
}
int
test_03 (double a, double b)
{
return a >= b;
}