Debian Codegraph @

gcc/testsuite/gcc.target/mips/mips-rint.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mhard-float -march=mips32r6" } */
3
4 NOMIPS16 float
5 test01 (float a)
6 {
7 return __builtin_rintf (a);
8 }
9
10 NOMIPS16 double
11 test02 (double a)
12 {
13 return __builtin_rint (a);
14 }
15
16 /* { dg-final { scan-assembler "rint\\.s" } } */
17 /* { dg-final { scan-assembler "rint\\.d" } } */