Debian Codegraph @

gcc/testsuite/gcc.target/csky/fpuv3/fpv3_ls.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 float fls32(float a, float b, float c, float d){
6 if(a <= b)
7 return c;
8
9 return d;
10 }
11
12 double fhz64(double a, double b, double c, double d){
13 if( a <= b)
14 return c;
15 return d;
16 }
17
18 /* { dg-final { scan-assembler "fcmphs\.32" } }*/
19 /* { dg-final { scan-assembler "fcmphs\.64" } }*/