From ac550b9a0e827dc155c2d38b24c527f47be191dc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 5 Dec 2017 14:34:41 +0100 Subject: [PATCH] re PR testsuite/83281 (libgomp.oacc-c-c++-common/reduction-cplx-flt.c and reduction-cplx-dbl.c fail starting with r255335) PR testsuite/83281 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use j suffix instead of i. * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main): Likewise. From-SVN: r255418 --- libgomp/ChangeLog | 8 ++++++++ .../libgomp.oacc-c-c++-common/reduction-cplx-dbl.c | 2 +- .../libgomp.oacc-c-c++-common/reduction-cplx-flt.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 9387d56a9a5..d350e6770ef 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,11 @@ +2017-12-05 Jakub Jelinek + + PR testsuite/83281 + * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use + j suffix instead of i. + * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main): + Likewise. + 2017-12-01 Cesar Philippidis * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c index 351e2409116..8fd4db97cb6 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c @@ -99,7 +99,7 @@ int main (void) { double frac = ix * (1.0 / 1024) + 1.0; - ary[ix] = frac + frac * 2.0i - 1.0i; + ary[ix] = frac + frac * 2.0j - 1.0j; sum += ary[ix]; prod *= ary[ix]; } diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c index 2e6feba25d0..f7cc1f25278 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c @@ -99,7 +99,7 @@ int main (void) { float frac = ix * (1.0f / 1024) + 1.0f; - ary[ix] = frac + frac * 2.0i - 1.0i; + ary[ix] = frac + frac * 2.0j - 1.0j; sum += ary[ix]; prod *= ary[ix]; } -- 2.30.2