gcc/libgomp/testsuite
Tobias Burnus 1580fc7644 OpenMP: Support complex/float in && and || reduction
C/C++ permit logical AND and logical OR also with floating-point or complex
arguments by doing an unequal zero comparison; the result is an 'int' with
value one or zero.  Hence, those are also permitted as reduction variable,
even though it is not the most sensible thing to do.

gcc/c/ChangeLog:

	* c-typeck.c (c_finish_omp_clauses): Accept float + complex
	for || and && reductions.

gcc/cp/ChangeLog:

	* semantics.c (finish_omp_reduction_clause): Accept float + complex
	for || and && reductions.

gcc/ChangeLog:

	* omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
	&& and || with floating-point and complex arguments.

gcc/testsuite/ChangeLog:

	* gcc.dg/gomp/clause-1.c: Use 'reduction(&:..)' instead of '...(&&:..)'.

libgomp/ChangeLog:

	* testsuite/libgomp.c-c++-common/reduction-1.c: New test.
	* testsuite/libgomp.c-c++-common/reduction-2.c: New test.
	* testsuite/libgomp.c-c++-common/reduction-3.c: New test.
2021-05-04 14:42:26 +02:00
..
config Update copyright years. 2021-01-04 10:26:59 +01:00
lib libgomp/testsuite: Fix checks for dg-excess-errors 2021-04-21 20:07:19 +02:00
libgomp.c [openmp, simt] Disable SIMT for user-defined reduction 2021-05-03 23:13:59 +02:00
libgomp.c-c++-common OpenMP: Support complex/float in && and || reduction 2021-05-04 14:42:26 +02:00
libgomp.c++ openmp: Add support for non-VLA {,first}private allocate on omp task 2020-11-14 01:46:16 +01:00
libgomp.fortran OpenMP/Fortran - fix pasto + testcase in depobj [PR100397] 2021-05-04 09:22:36 +02:00
libgomp.graphite Update copyright years. 2021-01-04 10:26:59 +01:00
libgomp.oacc-c [testsuite] Unset 'offload_target' after use 2020-07-24 14:00:43 +02:00
libgomp.oacc-c-c++-common modulo-sched: skip loops with strange register defs [PR100225] 2021-04-30 11:08:03 +03:00
libgomp.oacc-c++ Fix templatized C++ OpenACC 'cache' directive ICEs 2020-11-25 19:57:39 +01:00
libgomp.oacc-fortran OpenACC: Fix pattern in dg-bogus in Fortran testcases again 2021-04-26 23:13:22 +02:00
libgomp-site-extra.exp.in libgomp/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00
libgomp-test-support.exp.in libgomp/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00
Makefile.am libgomp/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00
Makefile.in libgomp: Regenerate configure files with automake 1.15.1 2020-10-02 12:08:47 +02:00