Debian Codegraph @

gcc/testsuite/gcc.target/csky/fpuv3/fpv3_unordered.c

raw
1 /* { dg-do compile } */
2 /* { dg-skip-if "test is specific to ck860f" { csky-*-* } { "*" } { "-mcpu=ck860*f* -mfloat-abi=hard" "-mcpu=ck860*f* -mhard-float" } } */
3 /* { dg-options "-O2" } */
4
5 int func32(float a, float b)
6 {
7 return __builtin_isunordered(a, b);
8 }
9
10 int func64(double a, double b)
11 {
12 return __builtin_isunordered(a, b);
13 }
14
15 /* { dg-final { scan-assembler "fcmpuo\.32" } }*/
16 /* { dg-final { scan-assembler "fcmpuo\.64" } }*/
17
18 int func32z(float a)
19 {
20 return __builtin_isunordered(a, 0);
21 }
22
23 int func64z(double a)
24 {
25 return __builtin_isunordered(a, 0);
26 }
27
28 /* { dg-final { scan-assembler "fcmpuoz\.32" } }*/
29 /* { dg-final { scan-assembler "fcmpuoz\.64" } }*/