(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
loongarch/
ftint-no-inexact.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-mabi=lp64d -mdouble-float -fno-math-errno -fno-fp-int-builtin-inexact" } */
       3  /* { dg-final { scan-assembler "ftint\\.l\\.s" } } */
       4  /* { dg-final { scan-assembler "ftint\\.l\\.d" } } */
       5  /* { dg-final { scan-assembler-not "ftintrm\\.l\\.s" } } */
       6  /* { dg-final { scan-assembler-not "ftintrm\\.l\\.d" } } */
       7  /* { dg-final { scan-assembler-not "ftintrp\\.l\\.s" } } */
       8  /* { dg-final { scan-assembler-not "ftintrp\\.l\\.d" } } */
       9  
      10  long
      11  my_lrint (double a)
      12  {
      13    return __builtin_lrint (a);
      14  }
      15  
      16  long
      17  my_lrintf (float a)
      18  {
      19    return __builtin_lrintf (a);
      20  }
      21  
      22  long
      23  my_lfloor (double a)
      24  {
      25    return __builtin_lfloor (a);
      26  }
      27  
      28  long
      29  my_lfloorf (float a)
      30  {
      31    return __builtin_lfloorf (a);
      32  }
      33  
      34  long
      35  my_lceil (double a)
      36  {
      37    return __builtin_lceil (a);
      38  }
      39  
      40  long
      41  my_lceilf (float a)
      42  {
      43    return __builtin_lceilf (a);
      44  }