blob: 3539eb46bbd6b9ed3b95dfd78e517e2607dbb0cd [file] [log] [blame]
/* { dg-do compile } */
/* { dg-skip-if "test is specific to ck860f" { csky-*-* } { "*" } { "-mcpu=ck860*f* -mfloat-abi=hard" "-mcpu=ck860*f* -mhard-float" } } */
/* { dg-options "-O2" } */
int func32(float a, float b)
{
return __builtin_isunordered(a, b);
}
int func64(double a, double b)
{
return __builtin_isunordered(a, b);
}
/* { dg-final { scan-assembler "fcmpuo\.32" } }*/
/* { dg-final { scan-assembler "fcmpuo\.64" } }*/
int func32z(float a)
{
return __builtin_isunordered(a, 0);
}
int func64z(double a)
{
return __builtin_isunordered(a, 0);
}
/* { dg-final { scan-assembler "fcmpuoz\.32" } }*/
/* { dg-final { scan-assembler "fcmpuoz\.64" } }*/