aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/reciprocal-math-1.c
blob: 49173e23166efd18ada089c65424b6f52a315fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test __RECIPROCAL_MATH__ is defined with -freciprocal-math.  */
/* { dg-do compile } */
/* { dg-options "-freciprocal-math" } */

#ifndef __RECIPROCAL_MATH__
#error "__RECIPROCAL_MATH__ not defined"
#endif

#pragma GCC optimize "-fno-reciprocal-math"
#ifdef __RECIPROCAL_MATH__
#error "__RECIPROCAL_MATH__ defined"
#endif

#pragma GCC optimize "-freciprocal-math"
#ifndef __RECIPROCAL_MATH__
#error "__RECIPROCAL_MATH__ not defined"
#endif