aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr107547.c
blob: c6992c8674b7672c581164af1b24b99e23be702d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* PR tree-optimization/107547 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int x;

void
foo (void)
{
#define TEST(...) \
  __builtin_acos##__VA_ARGS__ (x);	\
  __builtin_asin##__VA_ARGS__ (x);	\
  __builtin_acosh##__VA_ARGS__ (x);	\
  __builtin_atanh##__VA_ARGS__ (x);	\
  __builtin_cosh##__VA_ARGS__ (x);	\
  __builtin_sinh##__VA_ARGS__ (x);	\
  __builtin_log##__VA_ARGS__ (x);	\
  __builtin_log2##__VA_ARGS__ (x);	\
  __builtin_log10##__VA_ARGS__ (x);	\
  __builtin_log1p##__VA_ARGS__ (x);	\
  __builtin_exp##__VA_ARGS__ (x);	\
  __builtin_expm1##__VA_ARGS__ (x);	\
  __builtin_exp2##__VA_ARGS__ (x);	\
  __builtin_sqrt##__VA_ARGS__ (x)
  TEST (f);
  TEST ();
  TEST (l);
#ifdef __FLT16_MAX__
  TEST (f16);
#endif
#ifdef __FLT32_MAX__
  TEST (f32);
#endif
#ifdef __FLT64_MAX__
  TEST (f64);
#endif
#ifdef __FLT128_MAX__
  TEST (f128);
#endif
}