If nvptx offloading is configured in addition to GCN, we see:
FAIL: libgomp.c/simd-math-1.c (test for excess errors)
UNRESOLVED: libgomp.c/simd-math-1.c compilation failed to produce executable
x86_64-pc-linux-gnu-accel-nvptx-none-gcc: error: unrecognized command-line option '-mstack-size=
3000000'
Thus, restrict that ooption to GCN offloading compilation, and on the other
hand, there's no reason to skip this test for non-GCN offloading execution:
even if not SIMD-vectorized there, we still benefit from correctness testing.
libgomp/
* testsuite/libgomp.c/simd-math-1.c: Fix configuration.
+2023-01-20 Thomas Schwinge <thomas@codesourcery.com>
+
+ * testsuite/libgomp.c/simd-math-1.c: Fix configuration.
+
2023-01-19 Tobias Burnus <tobias@codesourcery.com>
Backported from master:
sufficiently close) results as their scalar equivalents. */
/* { dg-do run } */
-/* { dg-skip-if "AMD GCN only" { ! amdgcn_offloading_enabled } } */
/* { dg-options "-O2 -ftree-vectorize -fno-math-errno" } */
-/* { dg-additional-options "-foffload=-mstack-size=3000000 -foffload=-lm" } */
+/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mstack-size=3000000 } */
+/* { dg-additional-options -foffload-options=-lm } */
#undef PRINT_RESULT
#define VERBOSE 0