diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-01-10 12:01:25 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-01-10 11:01:25 +0000 |
commit | 1fe399e4a94e5bf9bb34362d1e1dc8b74272bc6d (patch) | |
tree | 41c7e87701698f84bb376f8f20cfdb08b932b697 /gcc | |
parent | 3ff0dc17a41ca4a8c673c67d0053e85a6521c739 (diff) | |
download | gcc-1fe399e4a94e5bf9bb34362d1e1dc8b74272bc6d.zip gcc-1fe399e4a94e5bf9bb34362d1e1dc8b74272bc6d.tar.gz gcc-1fe399e4a94e5bf9bb34362d1e1dc8b74272bc6d.tar.bz2 |
avx2-gather-1.c: Add -march.
* 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
Diffstat (limited to 'gcc')
18 files changed, 65 insertions, 16 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5009b92..32a1460 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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: diff --git a/gcc/testsuite/gcc.target/i386/avx2-gather-1.c b/gcc/testsuite/gcc.target/i386/avx2-gather-1.c index 7ed567d..c417e69 100644 --- a/gcc/testsuite/gcc.target/i386/avx2-gather-1.c +++ b/gcc/testsuite/gcc.target/i386/avx2-gather-1.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx2-gather-2.c b/gcc/testsuite/gcc.target/i386/avx2-gather-2.c index 174d555..e080323 100644 --- a/gcc/testsuite/gcc.target/i386/avx2-gather-2.c +++ b/gcc/testsuite/gcc.target/i386/avx2-gather-2.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx2-gather-3.c b/gcc/testsuite/gcc.target/i386/avx2-gather-3.c index fb6289c..0517e60 100644 --- a/gcc/testsuite/gcc.target/i386/avx2-gather-3.c +++ b/gcc/testsuite/gcc.target/i386/avx2-gather-3.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx2-gather-4.c b/gcc/testsuite/gcc.target/i386/avx2-gather-4.c index 440a9c9..104b9c2 100644 --- a/gcc/testsuite/gcc.target/i386/avx2-gather-4.c +++ b/gcc/testsuite/gcc.target/i386/avx2-gather-4.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx2-gather-5.c b/gcc/testsuite/gcc.target/i386/avx2-gather-5.c index 892a200..4f8e5fc 100644 --- a/gcc/testsuite/gcc.target/i386/avx2-gather-5.c +++ b/gcc/testsuite/gcc.target/i386/avx2-gather-5.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx2-gather-6.c b/gcc/testsuite/gcc.target/i386/avx2-gather-6.c index 180b490..0ffb04f 100644 --- a/gcc/testsuite/gcc.target/i386/avx2-gather-6.c +++ b/gcc/testsuite/gcc.target/i386/avx2-gather-6.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-gather-1.c b/gcc/testsuite/gcc.target/i386/avx512f-gather-1.c index 5ccb03a..eb9cbc1 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-gather-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-gather-1.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-gather-2.c b/gcc/testsuite/gcc.target/i386/avx512f-gather-2.c index a389896..e52a0ef 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-gather-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-gather-2.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-gather-3.c b/gcc/testsuite/gcc.target/i386/avx512f-gather-3.c index 5e20dd8..2054a94 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-gather-3.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-gather-3.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-gather-4.c b/gcc/testsuite/gcc.target/i386/avx512f-gather-4.c index bea8c24..b500ca1 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-gather-4.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-gather-4.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-gather-5.c b/gcc/testsuite/gcc.target/i386/avx512f-gather-5.c index 50a3168..2bb9c5c 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-gather-5.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-gather-5.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -mavx512f" } */ +/* { dg-options "-O3 -mavx512f -mtune=knl" } */ #include "avx512f-gather-4.c" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-1.c b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-1.c index 55b8d39..b27d6c9 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-1.c @@ -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> diff --git a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-2.c b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-2.c index d89ef04..faf96b6 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherd512-2.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c index cf8e369..b94de20 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c @@ -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> diff --git a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-2.c b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-2.c index 3af4915..d697ec2 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-2.c @@ -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" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherps512-1.c b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherps512-1.c index 1f1fab3..9f3e655 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherps512-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherps512-1.c @@ -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 index 0000000..8e669ba --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/compile/pr83081.f90 @@ -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 + |