1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-trapping-math -fno-finite-math-only -fdump-tree-optimized" } */
5 extern void link_error ();
14 double pinf
= __builtin_inf ();
16 /* The SPU single-precision floating point format does not support Inf. */
17 float pinff
= __builtin_inff ();
19 long double pinfl
= __builtin_infl ();
21 if (__builtin_isinf (pinf
) != 1)
24 if (__builtin_isinf (pinff
) != 1)
26 if (__builtin_isinff (pinff
) != 1)
29 if (__builtin_isinf (pinfl
) != 1)
31 if (__builtin_isinfl (pinfl
) != 1)
34 if (__builtin_isinf_sign (-pinf
) != -1)
37 if (__builtin_isinf_sign (-pinff
) != -1)
40 if (__builtin_isinf_sign (-pinfl
) != -1)
43 if (__builtin_isinf (4.0))
45 if (__builtin_isinf (4.0))
47 if (__builtin_isinff (4.0))
49 if (__builtin_isinf (4.0))
51 if (__builtin_isinfl (4.0))
56 /* Check that all instances of link_error were subject to DCE. */
57 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */