]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Fix SIMT for complex/float reduction with && and ||
authorTobias Burnus <tobias@codesourcery.com>
Fri, 14 May 2021 08:07:27 +0000 (10:07 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 14 May 2021 08:07:27 +0000 (10:07 +0200)
commitdb18b80aec206bfa34e94f776030a84f16b7f0cd
treebf3ec9e4f58bd5bcc8f0866b140e380cfe12c1ad
parent1c5e4b8d9b0e786dc0acb4e3ef33a34b2f07df96
OpenMP: Fix SIMT for complex/float reduction with && and ||

2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
    Tom de Vries  <tdevries@suse.de>

gcc/ChangeLog:

* omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
a truth_value_p reduction variable is nonintegral.

libgomp/ChangeLog:

* testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
complex/floating-point || + && reduction with 'omp target'.
* testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.

(cherry picked from commit 33b647956caa977d1ae489f9baed9cef70b4f382)
gcc/ChangeLog.omp
gcc/omp-low.c
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c-c++-common/reduction-5.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/reduction-6.c [new file with mode: 0644]