avx2-gather-1.c: Add -march.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 10 Jan 2018 11:01:25 +0000 (12:01 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 10 Jan 2018 11:01:25 +0000 (11:01 +0000)
* gcc.target/i386/avx2-gather-1.c: Add -march.
* gcc.target/i386/avx2-gather-2.c: Add -march.
* gcc.target/i386/avx2-gather-3.c: Add -march.
* gcc.target/i386/avx2-gather-4.c: Add -march.
* gcc.target/i386/avx2-gather-5.c: Add -march.
* gcc.target/i386/avx2-gather-6.c: Add -march.
* gcc.target/i386/avx512f-gather-1.c: Add -march.
* gcc.target/i386/avx512f-gather-2.c: Add -march.
* gcc.target/i386/avx512f-gather-3.c: Add -march.
* gcc.target/i386/avx512f-gather-4.c: Add -march.
* gcc.target/i386/avx512f-gather-5.c: Add -march.
* gcc.target/i386/avx512f-i32gatherd512-1.c: Add -march.
* gcc.target/i386/avx512f-i32gatherd512-2.c: Add -march.
* gcc.target/i386/avx512f-i32gatherpd512-1.c: Add -march.
* gcc.target/i386/avx512f-i32gatherpd512-2.c: Add -march.
* gcc.target/i386/avx512f-i32gatherps512-1.c: Add -march.

From-SVN: r256423

18 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx2-gather-1.c
gcc/testsuite/gcc.target/i386/avx2-gather-2.c
gcc/testsuite/gcc.target/i386/avx2-gather-3.c
gcc/testsuite/gcc.target/i386/avx2-gather-4.c
gcc/testsuite/gcc.target/i386/avx2-gather-5.c
gcc/testsuite/gcc.target/i386/avx2-gather-6.c
gcc/testsuite/gcc.target/i386/avx512f-gather-1.c
gcc/testsuite/gcc.target/i386/avx512f-gather-2.c
gcc/testsuite/gcc.target/i386/avx512f-gather-3.c
gcc/testsuite/gcc.target/i386/avx512f-gather-4.c
gcc/testsuite/gcc.target/i386/avx512f-gather-5.c
gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-1.c
gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-2.c
gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c
gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-2.c
gcc/testsuite/gcc.target/i386/avx512f-i32gatherps512-1.c
gcc/testsuite/gfortran.fortran-torture/compile/pr83081.f90 [new file with mode: 0644]

index 5009b92..32a1460 100644 (file)
@@ -1,3 +1,22 @@
+2018-01-09  Jan Hubicka  <hubicka@ucw.cz>
+
+       * gcc.target/i386/avx2-gather-1.c: Add -march.
+       * gcc.target/i386/avx2-gather-2.c: Add -march.
+       * gcc.target/i386/avx2-gather-3.c: Add -march.
+       * gcc.target/i386/avx2-gather-4.c: Add -march.
+       * gcc.target/i386/avx2-gather-5.c: Add -march.
+       * gcc.target/i386/avx2-gather-6.c: Add -march.
+       * gcc.target/i386/avx512f-gather-1.c: Add -march.
+       * gcc.target/i386/avx512f-gather-2.c: Add -march.
+       * gcc.target/i386/avx512f-gather-3.c: Add -march.
+       * gcc.target/i386/avx512f-gather-4.c: Add -march.
+       * gcc.target/i386/avx512f-gather-5.c: Add -march.
+       * gcc.target/i386/avx512f-i32gatherd512-1.c: Add -march.
+       * gcc.target/i386/avx512f-i32gatherd512-2.c: Add -march.
+       * gcc.target/i386/avx512f-i32gatherpd512-1.c: Add -march.
+       * gcc.target/i386/avx512f-i32gatherpd512-2.c: Add -march.
+       * gcc.target/i386/avx512f-i32gatherps512-1.c: Add -march.
+
 2018-01-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/78585:
index 7ed567d..c417e69 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx2 } */
-/* { dg-options "-O3 -mavx2" } */
+/* { dg-options "-O3 -mavx2 -mtune=skylake" } */
 
 #include "avx2-check.h"
 
index 174d555..e080323 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mavx2 -fdump-tree-vect-details" } */
+/* { dg-options "-O3 -mavx2 -fdump-tree-vect-details -mtune=skylake" } */
 
 #include "avx2-gather-1.c"
 
index fb6289c..0517e60 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx2 } */
-/* { dg-options "-O3 -mavx2 -ffast-math" } */
+/* { dg-options "-O3 -mavx2 -ffast-math -mtune=skylake" } */
 
 #include "avx2-check.h"
 
index 440a9c9..104b9c2 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx2 } */
-/* { dg-options "-O3 -mavx2" } */
+/* { dg-options "-O3 -mavx2 -mtune=skylake" } */
 
 #include "avx2-check.h"
 
index 892a200..4f8e5fc 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx2 } */
-/* { dg-options "-O3 -mavx2 -fno-common" } */
+/* { dg-options "-O3 -mavx2 -fno-common -mtune=skylake" } */
 
 #include "avx2-check.h"
 
index 180b490..0ffb04f 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mavx2 -fno-common -fdump-tree-vect-details" } */
+/* { dg-options "-O3 -mavx2 -fno-common -fdump-tree-vect-details -mtune=skylake" } */
 
 #include "avx2-gather-5.c"
 
index 5ccb03a..eb9cbc1 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx512f } */
-/* { dg-options "-O3 -mavx512f" } */
+/* { dg-options "-O3 -mavx512f -mtune=knl" } */
 
 #include "avx512f-check.h"
 
index a389896..e52a0ef 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */ /* PR59617 */
-/* { dg-options "-O3 -mavx512f -fdump-tree-vect-details" } */
+/* { dg-options "-O3 -mavx512f -fdump-tree-vect-details -mtune=knl" } */
 
 #include "avx512f-gather-1.c"
 
index 5e20dd8..2054a94 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx512f } */
-/* { dg-options "-O3 -mavx512f -ffast-math" } */
+/* { dg-options "-O3 -mavx512f -ffast-math -mtune=knl" } */
 
 #include "avx512f-check.h"
 
index bea8c24..b500ca1 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target avx512f } */
-/* { dg-options "-O3 -mavx512f" } */
+/* { dg-options "-O3 -mavx512f -mtune=knl" } */
 
 #include "avx512f-check.h"
 
index 50a3168..2bb9c5c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mavx512f" } */
+/* { dg-options "-O3 -mavx512f -mtune=knl" } */
 
 #include "avx512f-gather-4.c"
 
index 55b8d39..b27d6c9 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mavx512f -O2" } */
+/* { dg-options "-mavx512f -O2 -mtune=knl" } */
 /* { dg-final { scan-assembler-times "vpgatherdd\[ \\t\]+\[^\{\n\]*zmm\[0-9\]\[^\n\]*zmm\[0-9\]{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
 
 #include <immintrin.h>
index d89ef04..faf96b6 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-mavx512f -O2" } */
+/* { dg-options "-mavx512f -O2 -mtune=knl" } */
 /* { dg-require-effective-target avx512f } */
 
 #include "avx512f-check.h"
index cf8e369..b94de20 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mavx512f -O2" } */
+/* { dg-options "-mavx512f -O2 -mtune=knl" } */
 /* { dg-final { scan-assembler-times "vgatherdpd\[ \\t\]+\[^\{\n\]*ymm\[0-9\]\[^\n\]*zmm\[0-9\]{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
 
 #include <immintrin.h>
index 3af4915..d697ec2 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-mavx512f -O2" } */
+/* { dg-options "-mavx512f -O2 -mtune=knl" } */
 /* { dg-require-effective-target avx512f } */
 
 #include "avx512f-check.h"
index 1f1fab3..9f3e655 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mavx512f -O2" } */
+/* { dg-options "-mavx512f -O2 -mtune=knl" } */
 /* { dg-final { scan-assembler-times "vgatherdps\[ \\t\]+\[^\{\n\]*zmm\[0-9\]\[^\n\]*zmm\[0-9\]{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
 
 #include <immintrin.h>
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/pr83081.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/pr83081.f90
new file mode 100644 (file)
index 0000000..8e669ba
--- /dev/null
@@ -0,0 +1,30 @@
+Module radin_mod
+  INTEGER, PARAMETER :: DP = selected_real_kind(14,200)
+Contains
+  Subroutine SPLIFT (X,Y,YP,YPP,N,IERR,ISX,A1,B1,AN,BN)
+    Integer,  Intent(in) :: N,ISX
+    Real(dp), Intent(in) :: X(N),Y(N),A1,B1,AN,BN
+    Real(dp), Intent(out) :: YP(N),YPP(N)
+    Real(dp), Allocatable, Dimension(:,:) :: W
+    NM1  = N-1
+    NM2  = N-2
+    If (ISX.Gt.0) GO TO 40
+    Do I=2,N
+       If (X(I)-X(I-1) .Le. 0) Then
+          IERR = 3
+          Return
+       Endif
+    End Do
+    Allocate(W(N,3))
+40  YPP(1) = 4*B1
+    DOLD = (Y(2)-Y(1))/W(2,2)
+    Do  I=2,NM2
+       DNEW   = (Y(I+1) - Y(I))/W(I+1,2)
+       YPP(I) = 6*(DNEW - DOLD)
+       YP(I)  = DOLD
+       DOLD = DNEW
+    End Do
+    Return
+  End Subroutine SPLIFT
+End Module radin_mod
+