aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/reciprocal-math-2.c
blob: 959baa794b042470dd71825889085fc2d3c92f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test __RECIPROCAL_MATH__ is not defined with -fno-reciprocal-math.  */
/* { dg-do compile } */
/* { dg-options "-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

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