I can see the following two libgomp failures when the testsuite is run on an HSA-capable machine and HSA offloading is enabled. libgomp.c/../libgomp.c-c++-common/for-11.c execution test libgomp.c++/../libgomp.c-c++-common/for-11.c execution test The reason is that gridification cannot cope with != operator in OpenMP loops. A fix has been proposed on the mailing list: https://gcc.gnu.org/ml/gcc-patches/2019-02/msg00105.html
Author: jamborm Date: Thu Feb 21 11:00:47 2019 New Revision: 269066 URL: https://gcc.gnu.org/viewcvs?rev=269066&root=gcc&view=rev Log: [omp] Move NE_EXPR handling to omp_adjust_for_condition 2019-02-21 Martin Jambor <mjambor@suse.cz> PR hsa/89302 * omp-general.c (omp_extract_for_data): Removed a duplicate call to omp_adjust_for_condition, moved NE_EXPR code_cond processing... (omp_adjust_for_condition): ...here. Added necessary parameters. * omp-general.h (omp_adjust_for_condition): Updated declaration. * omp-grid.c (grid_attempt_target_gridification): Adjust to pass proper values to new parameters of omp_adjust_for_condition. Modified: trunk/gcc/ChangeLog trunk/gcc/omp-general.c trunk/gcc/omp-general.h trunk/gcc/omp-grid.c
Fixed.