(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
sse2-rint-inline-2.c
       1  /* Test rint and related functions expanded inline for SSE2.  rint
       2     should be expanded even when spurious "inexact" not allowed.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-O2 -msse2 -mfpmath=sse -fno-fp-int-builtin-inexact" } */
       5  /* { dg-require-effective-target sse2 } */
       6  
       7  #define TEST(FN, TYPE)				\
       8    do						\
       9      {						\
      10        volatile TYPE a = 1.5, b;			\
      11        b = FN (a);				\
      12      }						\
      13    while (0)
      14  
      15  #define FN_TESTS(FN)					\
      16    do							\
      17      {							\
      18        TEST (__builtin_ ## FN, double);			\
      19        TEST (__builtin_ ## FN ## f, float);		\
      20      }							\
      21    while (0)
      22  
      23  void
      24  test (void)
      25  {
      26    FN_TESTS (rint);
      27  }
      28  
      29  /* { dg-final { scan-assembler-not "\[ \t\]rint" } } */