]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 5009b92f90de1ba2ddacf2bed8c33f038653e182..32a1460a35ad48f7e2967ed251cd0681f658957f 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 7ed567dc491761f0d3629b355dc85c2f95c613d6..c417e699dc4e2c206e4f10cfbae1905496244a1c 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 174d555ceb86235b21e0fa55a6e7acf4c7fa17a9..e08032330711e7e3cdef6865a7cdbc08d44e9df3 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 fb6289c0e7e07f502b015105334b4ea39008cfec..0517e60351df595f4688fd44e7ad65fc708b6151 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 440a9c9b1646c9d137483068324fcbd4b54cff4a..104b9c2d4900a14c3b90f42d1dd3e36b7af5cd9e 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 892a20034e1ff48056a214e7e5e8619f6a4284f8..4f8e5fcefa400f4e1f48ee9e5bbf4be127bb5007 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 180b49003fd5108a3fc7176fbdc984437bb15c30..0ffb04f7c8c3d555645a8c693b1a2708dffe2a15 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 5ccb03a1f49e7cf8e113e3de849769220c3754d2..eb9cbc1a635121a7e7e192025f8c47039905ed7a 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 a38989676627d879be863319db65786b34c55090..e52a0ef599c8b049dfb734b8a7658dbb4508146c 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 5e20dd8898a13f44a7734ce20a5bad1daa5aaa62..2054a949325eb504330a1d02b81db43c7b532b14 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 bea8c24b8cd7c0fecbdcf5175f37d7145c543345..b500ca1fd484d9dc31761e670a5b794080b02a30 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 50a3168776c59123cf05ed316e6ba76c669f80c2..2bb9c5c090b3538e5811a6b93bb1459adfb97f86 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 55b8d3985226bcc5d3fa3d35d3967e45c6517aa3..b27d6c9f8e210c5775dfcce770dcc89c3738cc35 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 d89ef048d82eb8243b1f2b7b163ba6987922827a..faf96b6e6f7943ff17d0e27ecd3de0529c032c1c 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 cf8e36905e567f3589715ea9d00dab62a3c9d9af..b94de200e67d71fe5ae835d33bd810dcd3d4ecde 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 3af491548ba490a8b034bd81acc6ae60a9cad70a..d697ec22c8edd5f533a8611ab34e15788a19098d 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 1f1fab38d31f718040043900bd3b1d87260fdff1..9f3e65520fc2ccfd8fa7d55d1a82b2c3c109c338 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
+