Debian Codegraph @

gcc/testsuite/gcc.dg/pr107547.c

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