(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr107547.c
       1  /* PR tree-optimization/107547 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2" } */
       4  
       5  int x;
       6  
       7  void
       8  foo (void)
       9  {
      10  #define TEST(...) \
      11    __builtin_acos##__VA_ARGS__ (x);	\
      12    __builtin_asin##__VA_ARGS__ (x);	\
      13    __builtin_acosh##__VA_ARGS__ (x);	\
      14    __builtin_atanh##__VA_ARGS__ (x);	\
      15    __builtin_cosh##__VA_ARGS__ (x);	\
      16    __builtin_sinh##__VA_ARGS__ (x);	\
      17    __builtin_log##__VA_ARGS__ (x);	\
      18    __builtin_log2##__VA_ARGS__ (x);	\
      19    __builtin_log10##__VA_ARGS__ (x);	\
      20    __builtin_log1p##__VA_ARGS__ (x);	\
      21    __builtin_exp##__VA_ARGS__ (x);	\
      22    __builtin_expm1##__VA_ARGS__ (x);	\
      23    __builtin_exp2##__VA_ARGS__ (x);	\
      24    __builtin_sqrt##__VA_ARGS__ (x)
      25    TEST (f);
      26    TEST ();
      27    TEST (l);
      28  #ifdef __FLT16_MAX__
      29    TEST (f16);
      30  #endif
      31  #ifdef __FLT32_MAX__
      32    TEST (f32);
      33  #endif
      34  #ifdef __FLT64_MAX__
      35    TEST (f64);
      36  #endif
      37  #ifdef __FLT128_MAX__
      38    TEST (f128);
      39  #endif
      40  }