]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gfortran: Rely on dg-do-what-default to avoid running pr85853.f90, pr107254.f90 and...
authorPatrick O'Neill <patrick@rivosinc.com>
Thu, 2 Nov 2023 17:20:43 +0000 (10:20 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 21 Nov 2023 18:02:23 +0000 (10:02 -0800)
Testcases in gfortran.dg/vect/vect.exp rely on
check_vect_support_and_set_flags to set dg-do-what-default and avoid
running vector tests on non-vector targets. The three testcases in this
patch overwrite the default with dg-do run which causes issues
for non-vector targets.

Removing the dg-do run directive resolves this issue for non-vector
targets (while still running the tests on vector targets).

gcc/testsuite/ChangeLog:

* gfortran.dg/vect/pr107254.f90: Remove dg-do run directive.
* gfortran.dg/vect/pr85853.f90: Ditto.
* gfortran.dg/vect/vect-alias-check-1.F90: Ditto.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/testsuite/gfortran.dg/vect/pr107254.f90
gcc/testsuite/gfortran.dg/vect/pr85853.f90
gcc/testsuite/gfortran.dg/vect/vect-alias-check-1.F90

index 85bcb5f3fa2e3d8b087fc4c470a6a25e712dca4c..adce6bedc30bbd1fb8df64656fcb1dc710f942cb 100644 (file)
@@ -1,5 +1,3 @@
-! { dg-do run }
-
 subroutine dlartg( f, g, s, r )
   implicit none
   double precision :: f, g, r, s
index 68f4a00432494a9b16da14c7528a743227802171..4c0e3b81a09d42415a7845ac580703b7dceafd00 100644 (file)
@@ -1,5 +1,4 @@
 ! Taken from execute/where_2.f90, but with special flags.
-! { dg-do run }
 ! { dg-additional-options "-fno-tree-loop-vectorize" }
 
 ! Program to test the WHERE constructs
index 3014ff9f3b65e402e5232d44475f879ee9ffeaa3..85ae9b151e3a002929479fd4cbbd63da23f30c35 100644 (file)
@@ -1,4 +1,3 @@
-! { dg-do run }
 ! { dg-additional-options "-fno-inline" }
 
 #define N 200