* [committed] Avoid i suffixes in libgomp oacc testsuite (PR testsuite/83281)
@ 2017-12-05 13:38 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2017-12-05 13:38 UTC (permalink / raw)
To: gcc-patches
Hi!
The i suffix in C++14 does something different now, so I've changed
it to use the j suffix which stayed as is.
Regtested on x86_64-linux and i686-linux, committed to trunk.
2017-12-05 Jakub Jelinek <jakub@redhat.com>
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.
--- libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c.jj 2017-02-09 12:59:36.000000000 +0100
+++ libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c 2017-12-05 13:17:55.698446879 +0100
@@ -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];
}
--- libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c.jj 2017-02-09 12:59:36.000000000 +0100
+++ libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c 2017-12-05 13:17:40.953631736 +0100
@@ -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];
}
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-05 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 13:38 [committed] Avoid i suffixes in libgomp oacc testsuite (PR testsuite/83281) Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).