pr36119.f: Rename to ...
authorIra Rosen <irar@il.ibm.com>
Mon, 12 May 2008 11:03:11 +0000 (11:03 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Mon, 12 May 2008 11:03:11 +0000 (11:03 +0000)
        * gfortran.dg/vect/pr36119.f: Rename to ...
        * gfortran.dg/vect/O3-pr36119.f90: ... this. Compile for all targets
        with -O3.

From-SVN: r135209

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/vect/O3-pr36119.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/vect/pr36119.f [deleted file]
gcc/testsuite/gfortran.dg/vect/vect.exp

index ae7e016e3f1351a419f49878e761fb100ea58413..1ddbc28332918d0212c7865176da8b697cf60e3c 100644 (file)
@@ -1,3 +1,9 @@
+2008-05-05  Ira Rosen  <irar@il.ibm.com>
+
+       * gfortran.dg/vect/pr36119.f: Rename to ...
+       * gfortran.dg/vect/O3-pr36119.f90: ... this. Compile for all targets
+       with -O3.
+
 2008-05-11  Adam Nemet  <anemet@caviumnetworks.com>
 
        * gcc.target/mips/mips.exp: Move passing -DMIPS16=... from here ...
diff --git a/gcc/testsuite/gfortran.dg/vect/O3-pr36119.f90 b/gcc/testsuite/gfortran.dg/vect/O3-pr36119.f90
new file mode 100644 (file)
index 0000000..432e848
--- /dev/null
@@ -0,0 +1,28 @@
+! { dg-do compile } 
+
+SUBROUTINE check_dnucint_ana (dcore)
+  IMPLICIT NONE
+  INTEGER, PARAMETER :: dp=8
+  REAL(dp), DIMENSION(10, 2), INTENT(IN),&
+       OPTIONAL                            :: dcore
+  INTEGER                                  :: i, j
+  REAL(dp)                                 :: delta, nssss, od, rn, ssssm, &
+       ssssp
+  REAL(dp), DIMENSION(10, 2)               :: corem, corep, ncore
+  LOGICAL                                  :: check_value
+
+  delta = 1.0E-8_dp
+  od = 0.5_dp/delta
+  ncore = od * (corep - corem)
+  nssss = od * (ssssp - ssssm)
+  IF (PRESENT(dcore)) THEN
+     DO i = 1, 2
+        DO j = 1, 10
+           IF (.NOT.check_value(ncore(j,i), dcore(j,i), delta, 0.1_dp)) THEN
+           END IF
+        END DO
+     END DO
+  END IF
+END SUBROUTINE check_dnucint_ana
+
+! { dg-final { cleanup-tree-dump "vect" } } 
diff --git a/gcc/testsuite/gfortran.dg/vect/pr36119.f b/gcc/testsuite/gfortran.dg/vect/pr36119.f
deleted file mode 100644 (file)
index d4b11cb..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-! { dg-do compile { target { i?86-*-* x86_64-*-* } } } 
-! { dg-options "-O3 -mfpmath=sse -msse2 -ffree-form" } 
-
-SUBROUTINE check_dnucint_ana (dcore)
-  IMPLICIT NONE
-  INTEGER, PARAMETER :: dp=8
-  REAL(dp), DIMENSION(10, 2), INTENT(IN),&
-       OPTIONAL                            :: dcore
-  INTEGER                                  :: i, j
-  REAL(dp)                                 :: delta, nssss, od, rn, ssssm, &
-       ssssp
-  REAL(dp), DIMENSION(10, 2)               :: corem, corep, ncore
-  LOGICAL                                  :: check_value
-
-  delta = 1.0E-8_dp
-  od = 0.5_dp/delta
-  ncore = od * (corep - corem)
-  nssss = od * (ssssp - ssssm)
-  IF (PRESENT(dcore)) THEN
-     DO i = 1, 2
-        DO j = 1, 10
-           IF (.NOT.check_value(ncore(j,i), dcore(j,i), delta, 0.1_dp)) THEN
-           END IF
-        END DO
-     END DO
-  END IF
-END SUBROUTINE check_dnucint_ana
-
-! { dg-final { cleanup-tree-dump "vect" } } 
index 518b6850b6a44dc0bbed071679646fb6c6814411..c532967ae36cf768359eb1d5a7309d58b592e00b 100644 (file)
@@ -137,6 +137,12 @@ lappend DEFAULT_VECTCFLAGS "--param" "vect-max-version-for-alias-checks=0"
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/no-vfa-*.\[fF\]{,90,95,03,08} ]]  \
         "" $DEFAULT_VECTCFLAGS
 
+# With -O3
+set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
+lappend DEFAULT_VECTCFLAGS "-O3"
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/O3-*.\[fF\]{,90,95,03,08} ]]  \
+        "" $DEFAULT_VECTCFLAGS
+
 # Clean up.
 set dg-do-what-default ${save-dg-do-what-default}