ca431befaa
2015-06-15 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting in dg-options. * testsuite/libgomp.c/atomic-3.c: Same. * testsuite/libgomp.c/debug-1.c: Same. * testsuite/libgomp.c/nqueens-1.c: Same. * testsuite/libgomp.c/pr26171.c: Same. * testsuite/libgomp.c/pr48591.c: Same. * testsuite/libgomp.c/pr64824.c: Same. * testsuite/libgomp.c/pr64868.c: Same. * testsuite/libgomp.c/pr66133.c: Same. * testsuite/libgomp.c/pr66199-1.c: Same. * testsuite/libgomp.c/pr66199-2.c: Same. * testsuite/libgomp.c/target-8.c: Same. From-SVN: r224480
23 lines
434 B
C
23 lines
434 B
C
/* PR middle-end/48591 */
|
|
/* { dg-do run { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* ia64-*-linux* x86_64-*-freebsd* } } */
|
|
/* { dg-options "-O0" } */
|
|
|
|
extern void abort (void);
|
|
|
|
int
|
|
main ()
|
|
{
|
|
__float128 f = 0.0;
|
|
int i;
|
|
#pragma omp parallel for reduction(+:f)
|
|
for (i = 0; i < 128; i++)
|
|
f += 0.5Q;
|
|
if (f != 64.0Q)
|
|
abort ();
|
|
#pragma omp atomic
|
|
f += 8.5Q;
|
|
if (f != 72.5Q)
|
|
abort ();
|
|
return 0;
|
|
}
|