blob: cc6a3f984d3e4092902e22ed1a14b49a6d9aa06b [file] [log] [blame]
/* Check that fcmp/eq and fcmp/gt instructions are generated by default
(implicit -mieee). */
/* { dg-do compile } */
/* { dg-options "-O1" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m3" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
/* { 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;
}