]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix 'libgomp.c/simd-math-1.c' configuration
authorThomas Schwinge <thomas@codesourcery.com>
Sat, 14 Jan 2023 09:28:09 +0000 (10:28 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 20 Jan 2023 14:12:18 +0000 (15:12 +0100)
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.

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c/simd-math-1.c

index 629efbc58323bbec442951ae6e0b3b784ca7f38e..23e93495b62f8799aead914ec2c6500e6d37730f 100644 (file)
@@ -1,3 +1,7 @@
+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:
index caf032a77aef2f341fa434b6e3f41a53321ecca7..1ebdccccfeb2463f7397a4d804375849ffd9eb53 100644 (file)
@@ -2,9 +2,9 @@
    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