[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / rs6000-ldouble-2.c
blob5dc74cd2de48d5a57b572311c59c65a80d6bd8eb
1 /* { dg-do run { target { { powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* } || { powerpc*-*-linux* && lp64 } } } } */
2 /* { dg-options "-mlong-double-128" } */
4 /* Check that LDBL_EPSILON is right for 'long double'. */
6 #include <float.h>
8 extern void abort (void);
10 int main(void)
12 volatile long double ee = 1.0;
13 long double eps = ee;
14 while (ee + 1.0 != 1.0)
16 eps = ee;
17 ee = eps / 2;
19 if (eps != LDBL_EPSILON)
20 abort ();
21 return 0;