id-17.f: For ilp32 allow graphite codegen errors and scan for one.
authorRichard Biener <rguenther@suse.de>
Wed, 4 Oct 2017 07:43:54 +0000 (07:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 4 Oct 2017 07:43:54 +0000 (07:43 +0000)
2017-10-04  Richard Biener  <rguenther@suse.de>

* gfortran.dg/graphite/id-17.f: For ilp32 allow graphite codegen
errors and scan for one.
* gfortran.dg/graphite/id-19.f: Likewise.
* gfortran.dg/graphite/pr29832.f90: Likewise.
* gfortran.dg/graphite/pr42326-1.f90: Likewise.
* gfortran.dg/graphite/pr42326.f90: Likewise.
* gfortran.dg/graphite/pr68550-2.f90: Likewise.
* gfortran.dg/graphite/run-id-2.f90: Likewise.
* gfortran.dg/graphite/run-id-3.f90: Likewise.
* gfortran.dg/graphite/pr42393-1.f90: Dump graphite.

From-SVN: r253394

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/id-17.f
gcc/testsuite/gfortran.dg/graphite/id-19.f
gcc/testsuite/gfortran.dg/graphite/pr29832.f90
gcc/testsuite/gfortran.dg/graphite/pr42326-1.f90
gcc/testsuite/gfortran.dg/graphite/pr42326.f90
gcc/testsuite/gfortran.dg/graphite/pr42393-1.f90
gcc/testsuite/gfortran.dg/graphite/pr68550-2.f90
gcc/testsuite/gfortran.dg/graphite/run-id-2.f90
gcc/testsuite/gfortran.dg/graphite/run-id-3.f90

index 7bd355603cc1eeb2925dcb0847d6ad29c48f98e9..9205fbe6846edf16c353f53c283122c170cbc454 100644 (file)
@@ -1,3 +1,16 @@
+2017-10-04  Richard Biener  <rguenther@suse.de>
+
+       * gfortran.dg/graphite/id-17.f: For ilp32 allow graphite codegen
+       errors and scan for one.
+       * gfortran.dg/graphite/id-19.f: Likewise.
+       * gfortran.dg/graphite/pr29832.f90: Likewise.
+       * gfortran.dg/graphite/pr42326-1.f90: Likewise.
+       * gfortran.dg/graphite/pr42326.f90: Likewise.
+       * gfortran.dg/graphite/pr68550-2.f90: Likewise.
+       * gfortran.dg/graphite/run-id-2.f90: Likewise.
+       * gfortran.dg/graphite/run-id-3.f90: Likewise.
+       * gfortran.dg/graphite/pr42393-1.f90: Dump graphite.
+
 2017-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        * gcc.target/powerpc/float128-odd.c: New test.
index 4bebed016782973257988944e6b4dd2fbf400791..043ef988e5039af723f7e4490928e4777c143ba1 100644 (file)
@@ -1,3 +1,4 @@
+! { dg-additional-options "-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" { target ilp32 } }
       SUBROUTINE SPECTOP(Dr,N)
       DIMENSION d1(0:32,0:32) , Dr(0:32,0:32) , x(0:32)
       DO k = 0 , N
@@ -14,3 +15,4 @@
          ENDDO
       ENDDO
       END
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" { target ilp32 } } }
index e05f764b294a87480d8cd7dec4b103229c958a7a..824397c2ae26857c1c708058cfd41a2da5dcdd47 100644 (file)
@@ -1,3 +1,4 @@
+! { dg-additional-options "-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" { target ilp32 } }
       SUBROUTINE ECCODR(FPQR)
       DIMENSION FPQR(25,25,25)
       INTEGER P,Q,R
@@ -13,3 +14,4 @@
   140    QM2= QM2+TWO
   150 PM2= PM2+TWO
       END
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" { target ilp32 } } }
index ab222ab03a60d73df0560b01591933512aa24c3d..5ded45ed886332e89a3a23831aeb6530a1d7e647 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-O2 -ftree-loop-linear" }
+! { dg-additional-options "-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" { target ilp32 } }
 
 ! Program to test the scalarizer
 program testarray
@@ -24,3 +25,4 @@ program testarray
    end do
 end program
 
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" { target ilp32 } } }
index 8c9d110b22af46892c86f1384f14e76645276507..512b71650a008b3c3c6a2dc373307dd3e6925c05 100644 (file)
@@ -1,7 +1,7 @@
 ! { dg-do compile { target i?86-*-* x86_64-*-* } }
 ! { dg-require-effective-target ilp32 }
 ! { dg-require-effective-target sse2 }
-! { dg-options "-O2 -floop-parallelize-all -fprefetch-loop-arrays -msse2" }
+! { dg-options "-O2 -floop-parallelize-all -fprefetch-loop-arrays -msse2 -fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" }
 
 subroutine phasad(t,i,ium)
   implicit none
@@ -17,3 +17,4 @@ subroutine phasad(t,i,ium)
   return
 end subroutine phasad
 
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" } }
index 06ef2b7067338da79c08a847b747de91296d0fef..9544ee7c9f77056a7266e51fef2046ea36a58f43 100644 (file)
@@ -1,7 +1,7 @@
 ! { dg-do compile { target i?86-*-* x86_64-*-* } }
 ! { dg-require-effective-target ilp32 }
 ! { dg-require-effective-target sse2 }
-! { dg-options "-O2 -floop-strip-mine -fprefetch-loop-arrays -msse2" }
+! { dg-options "-O2 -floop-strip-mine -fprefetch-loop-arrays -msse2 -fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" }
 
 subroutine blts ( ldmx, ldmy, v, tmp1, i, j, k)
   implicit none
@@ -34,3 +34,4 @@ subroutine phasad(t,i,ium)
   return
 end subroutine phasad
 
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" } }
index 84c9c57b24eb64b8c54b96aff7f6cc1edb5d895f..21aa7d126ee7cc9c9ef70c19c3436b3c224f7dcc 100644 (file)
@@ -1,4 +1,4 @@
-! { dg-options "-O2 -fgraphite-identity -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine --param graphite-allow-codegen-errors=1" }
+! { dg-options "-O2 -fgraphite-identity -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine -fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" }
 
 MODULE beta_gamma_psi
   INTEGER, PARAMETER :: dp=KIND(0.0D0)
index fae0c92a7dc48c5594c02cf533ffa8f5575a626b..afdc47fa6545bc0c55f596e194f3d4494b3b1ae5 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do compile }
 ! { dg-options "-floop-nest-optimize -fcheck=bounds -O1" }
+! { dg-additional-options "-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" { target ilp32 } }
 
 SUBROUTINE PD2VAL(RES,NDERIV,TG1,TG2,C0)
     INTEGER, PARAMETER :: dp=8
@@ -12,3 +13,5 @@ SUBROUTINE PD2VAL(RES,NDERIV,TG1,TG2,C0)
   RES(K)=RES(K)+DOT_PRODUCT(T1(0:3),C0(96:99,K))*T2(10)
  ENDDO
 END SUBROUTINE PD2VAL
+
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" { target ilp32 } } }
index c4fa1d06141c7244d14661da1a6e93eb11bac204..c6d2f947838dbfb53f3bb24e215faa39a8c9f1fb 100644 (file)
@@ -1,3 +1,4 @@
+! { dg-additional-options "-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" { target ilp32 } }
   IMPLICIT NONE
   INTEGER, PARAMETER :: dp=KIND(0.0D0)
   REAL(KIND=dp)      :: res
@@ -64,3 +65,4 @@ CONTAINS
   END FUNCTION exp_radius_very_extended
 
 END
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" { target ilp32 } } }
index 54139efcc8f1424ada6151fc0694a7ea9cbd9f20..03b62103e6774618d681d16f120f43d54022571d 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-ffrontend-optimize -floop-nest-optimize" }
+! { dg-additional-options "-fdump-tree-graphite-details --param graphite-allow-codegen-errors=1" { target ilp32 } }
 ! PR 56872 - wrong front-end optimization with a single constructor.
 ! Original bug report by Rich Townsend.
   integer :: k
@@ -10,3 +11,4 @@
   res = SUM([(s**(REAL(k-1)/REAL(m-1)),k=1,m)])
   if (abs(res - 5.84732246) > 1e-6) call abort
   end
+! { dg-final { scan-tree-dump-times "code generation error" 1 " graphite" { target ilp32 } } }