Hello!

2016-06-23  Uros Bizjak  <ubiz...@gmail.com>

    * g++.dg/vect/pr33834_2.cc: Use dg-additional-options instead of
    dg-options and remove default vector testsuite compile flags.
    * g++.dg/vect/pr33860a.cc: Ditto.
    * g++.dg/vect/pr45470-a.cc: Ditto.
    * g++.dg/vect/pr45470-b.cc: Ditto.
    * g++.dg/vect/pr60896.cc: Ditto.
    * gcc.dg/vect/no-tree-pre-pr45241.c: Ditto.
    * gcc.dg/vect/pr18308.c: Ditto.
    * gcc.dg/vect/pr24049.c: Ditto.
    * gcc.dg/vect/pr33373.c: Ditto.
    * gcc.dg/vect/pr36228.c: Ditto.
    * gcc.dg/vect/pr42395.c: Ditto.
    * gcc.dg/vect/pr42604.c: Ditto.
    * gcc.dg/vect/pr46663.c: Ditto.
    * gcc.dg/vect/pr48765.c: Ditto.
    * gcc.dg/vect/pr49093.c: Ditto.
    * gcc.dg/vect/pr49352.c: Ditto.
    * gcc.dg/vect/pr52298.c: Ditto.
    * gcc.dg/vect/pr52870.c: Ditto.
    * gcc.dg/vect/pr53185.c: Ditto.
    * gcc.dg/vect/pr53773.c: Ditto.
    * gcc.dg/vect/pr56695.c: Ditto.
    * gcc.dg/vect/pr62171.c: Ditto.
    * gcc.dg/vect/pr63530.c: Ditto.
    * gcc.dg/vect/pr68339.c: Ditto.
    * gcc.dg/vect/pr71259.c: Ditto.
    * gcc.dg/vect/vect-82_64.c: Ditto.
    * gcc.dg/vect/vect-83_64.c: Ditto.
    * gcc.dg/vect/vect-debug-pr41926.c: Ditto.
    * gcc.dg/vect/vect-shift-2-big-array.c: Ditto.
    * gcc.dg/vect/vect-shift-2.c: Ditto.
    * gfortran.dg/vect/fast-math-mgrid-resid.f: Ditto.
    * gfortran.dg/vect/pr39318.f90: Ditto.
    * gfortran.dg/vect/pr45714-a.f: Ditto.
    * gfortran.dg/vect/pr45714-b.f: Ditto.
    * gfortran.dg/vect/pr46213.f90: Ditto.

Tested on x86_64-linux-gnu {,-m32}  and committed to mainline SVN.

Uros.
Index: g++.dg/vect/pr33834_2.cc
===================================================================
--- g++.dg/vect/pr33834_2.cc    (revision 237739)
+++ g++.dg/vect/pr33834_2.cc    (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize" } */
+/* { dg-additional-options "-O3" } */
 
 /* Testcase by Martin Michlmayr <t...@cyrius.com> */
 
Index: g++.dg/vect/pr33860a.cc
===================================================================
--- g++.dg/vect/pr33860a.cc     (revision 237739)
+++ g++.dg/vect/pr33860a.cc     (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } 
*/
+/* { dg-additional-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && 
ilp32 } } } */
 
 /* Testcase by Martin Michlmayr <t...@cyrius.com> */
 
Index: g++.dg/vect/pr45470-a.cc
===================================================================
--- g++.dg/vect/pr45470-a.cc    (revision 237739)
+++ g++.dg/vect/pr45470-a.cc    (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize -fnon-call-exceptions" } */
+/* { dg-additional-options "-O1 -fnon-call-exceptions" } */
 
 struct A
 {
Index: g++.dg/vect/pr45470-b.cc
===================================================================
--- g++.dg/vect/pr45470-b.cc    (revision 237739)
+++ g++.dg/vect/pr45470-b.cc    (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize -fno-vect-cost-model 
-fnon-call-exceptions" } */
+/* { dg-additional-options "-O1 -fnon-call-exceptions" } */
 
 template < typename _Tp > struct new_allocator
 {
Index: g++.dg/vect/pr60896.cc
===================================================================
--- g++.dg/vect/pr60896.cc      (revision 237739)
+++ g++.dg/vect/pr60896.cc      (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3" } */
+/* { dg-additional-options "-O3" } */
 
 struct A
 {
Index: gcc.dg/vect/no-tree-pre-pr45241.c
===================================================================
--- gcc.dg/vect/no-tree-pre-pr45241.c   (revision 237739)
+++ gcc.dg/vect/no-tree-pre-pr45241.c   (working copy)
@@ -1,6 +1,5 @@
 /* PR tree-optimization/45241 */
 /* { dg-do compile } */
-/* { dg-options "-ftree-vectorize" } */
 
 int
 foo (short x)
Index: gcc.dg/vect/pr18308.c
===================================================================
--- gcc.dg/vect/pr18308.c       (revision 237739)
+++ gcc.dg/vect/pr18308.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O -ftree-vectorize -funroll-loops" } */
+/* { dg-additional-options "-O -funroll-loops" } */
 void foo();
 
 void bar(int j)
Index: gcc.dg/vect/pr24049.c
===================================================================
--- gcc.dg/vect/pr24049.c       (revision 237739)
+++ gcc.dg/vect/pr24049.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize --param ggc-min-heapsize=0 --param 
ggc-min-expand=0" } */
+/* { dg-additional-options "-O1 --param ggc-min-heapsize=0 --param 
ggc-min-expand=0" } */
 
 void unscrunch (unsigned char *, int *);
 
Index: gcc.dg/vect/pr33373.c
===================================================================
--- gcc.dg/vect/pr33373.c       (revision 237739)
+++ gcc.dg/vect/pr33373.c       (working copy)
@@ -1,5 +1,5 @@
-/* { dg-options "-Wno-shift-overflow" } */
 /* { dg-do compile } */
+/* { dg-additional-options "-Wno-shift-overflow" } */
 void DOSMEM_FillIsrTable(int*isr) {
     int i;
 
Index: gcc.dg/vect/pr36228.c
===================================================================
--- gcc.dg/vect/pr36228.c       (revision 237739)
+++ gcc.dg/vect/pr36228.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-vect-details" } */
+/* { dg-additional-options "-O3" } */
 
 #define COLS         8
 #define ROWS         8
Index: gcc.dg/vect/pr42395.c
===================================================================
--- gcc.dg/vect/pr42395.c       (revision 237739)
+++ gcc.dg/vect/pr42395.c       (working copy)
@@ -1,6 +1,6 @@
 /* PR debug/42395 */
 /* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize -g" } */
+/* { dg-additional-options "-O3 -g" } */
 
 void foo(int j, int *A)
 {
Index: gcc.dg/vect/pr42604.c
===================================================================
--- gcc.dg/vect/pr42604.c       (revision 237739)
+++ gcc.dg/vect/pr42604.c       (working copy)
@@ -1,6 +1,6 @@
 /* PR debug/42604 */
 /* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize -g -ffast-math" } */
+/* { dg-additional-options "-O3 -g -ffast-math" } */
 
 unsigned *d;
 unsigned short e;
Index: gcc.dg/vect/pr46663.c
===================================================================
--- gcc.dg/vect/pr46663.c       (revision 237739)
+++ gcc.dg/vect/pr46663.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O -ftree-vectorize -fdump-tree-vect-details -fexceptions" } 
*/
+/* { dg-additional-options "-O -fexceptions" } */
 
 typedef __attribute__ ((const)) int (*bart) (void);
 
Index: gcc.dg/vect/pr48765.c
===================================================================
--- gcc.dg/vect/pr48765.c       (revision 237739)
+++ gcc.dg/vect/pr48765.c       (working copy)
@@ -1,6 +1,6 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { *-*-* } { "-mcpu=*" } { 
"-mcpu=power6" } } */
-/* { dg-options "-O3 -mcpu=power6" } */
+/* { dg-additional-options "-O3 -mcpu=power6" } */
 
 enum reg_class
 {
Index: gcc.dg/vect/pr49093.c
===================================================================
--- gcc.dg/vect/pr49093.c       (revision 237739)
+++ gcc.dg/vect/pr49093.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize -fdump-tree-vect-details -fno-tree-fre" 
} */
+/* { dg-additional-options "-O1 -fno-tree-fre" } */
 
 volatile unsigned char g_324[4] = {0, 1, 0, 1};
 void foo (int);
Index: gcc.dg/vect/pr49352.c
===================================================================
--- gcc.dg/vect/pr49352.c       (revision 237739)
+++ gcc.dg/vect/pr49352.c       (working copy)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/49352 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -fcompare-debug" } */
+/* { dg-additional-options "-O2 -fcompare-debug" } */
 /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
 
 int
Index: gcc.dg/vect/pr52298.c
===================================================================
--- gcc.dg/vect/pr52298.c       (revision 237739)
+++ gcc.dg/vect/pr52298.c       (working copy)
@@ -1,5 +1,7 @@
-/* { dg-options "-O1 -ftree-vectorize -fno-tree-pre -fno-tree-loop-im" } */
+/* { dg-additional-options "-O1 -fno-tree-pre -fno-tree-loop-im" } */
 
+#include "tree-vect.h"
+
 extern void abort (void);
 int c[80];
 
@@ -19,6 +21,7 @@
 main ()
 {
   int i;
+  check_vect ();
   for (i = 0; i < 60; i++)
     c[i] = 1;
   for (; i < 64; i++)
Index: gcc.dg/vect/pr52870.c
===================================================================
--- gcc.dg/vect/pr52870.c       (revision 237739)
+++ gcc.dg/vect/pr52870.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize" } */
+/* { dg-additional-options "-O1" } */
 
 void foo (unsigned long int);
 
Index: gcc.dg/vect/pr53185.c
===================================================================
--- gcc.dg/vect/pr53185.c       (revision 237739)
+++ gcc.dg/vect/pr53185.c       (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize" } */
+/* { dg-additional-options "-O3" } */
+
 unsigned short a, e;
 int *b, *d;
 int c;
Index: gcc.dg/vect/pr53773.c
===================================================================
--- gcc.dg/vect/pr53773.c       (revision 237739)
+++ gcc.dg/vect/pr53773.c       (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-fdump-tree-optimized" } */
+/* { dg-additional-options "-fdump-tree-optimized" } */
 
 int
 foo (int integral, int decimal, int power_ten)
Index: gcc.dg/vect/pr56695.c
===================================================================
--- gcc.dg/vect/pr56695.c       (revision 237739)
+++ gcc.dg/vect/pr56695.c       (working copy)
@@ -1,6 +1,5 @@
 /* PR tree-optimization/56695 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize" } */
 
 int a, b, i;
 
Index: gcc.dg/vect/pr62171.c
===================================================================
--- gcc.dg/vect/pr62171.c       (revision 237739)
+++ gcc.dg/vect/pr62171.c       (working copy)
@@ -1,5 +1,4 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
 /* { dg-require-effective-target vect_double } */
 
 struct omp_data_i
Index: gcc.dg/vect/pr63530.c
===================================================================
--- gcc.dg/vect/pr63530.c       (revision 237739)
+++ gcc.dg/vect/pr63530.c       (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -ftree-vectorize -funroll-loops --param 
\"max-completely-peeled-insns=400\"" } */
+/* { dg-additional-options "-funroll-loops --param 
\"max-completely-peeled-insns=400\"" } */
 
 /* PR tree-optimization/63530 */
 /* On armv7 hardware, following options cause run time failure  */
@@ -5,6 +5,8 @@
 /*   -march=armv7-a -mfloat-abi=hard -mfpu=neon -marm -O2 -ftree-vectorize  */
 /*   -funroll-loops --param "max-completely-peeled-insns=400"  */
 
+#include "tree-vect.h"
+
 #include <stdlib.h>
 
 typedef struct {
@@ -26,5 +28,6 @@
 main()
 {
   AP p = foo(3);
+  check_vect ();
   return p->map[30] - p->map[20] - p->map[10];
 }
Index: gcc.dg/vect/pr68339.c
===================================================================
--- gcc.dg/vect/pr68339.c       (revision 237739)
+++ gcc.dg/vect/pr68339.c       (working copy)
@@ -1,6 +1,6 @@
 /* PR middle-end/68339 */
 /* { dg-do compile } */
-/* { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0 
-fopenmp-simd" } */
+/* { dg-additional-options "--param ggc-min-heapsize=0 --param 
ggc-min-expand=0 -fopenmp-simd" } */
 
 #pragma omp declare simd notinbranch
 int
Index: gcc.dg/vect/pr71259.c
===================================================================
--- gcc.dg/vect/pr71259.c       (revision 237739)
+++ gcc.dg/vect/pr71259.c       (working copy)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/71259 */
 /* { dg-do run } */
-/* { dg-options "-O3" } */
+/* { dg-additional-options "-O3" } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
 
 #include "tree-vect.h"
Index: gcc.dg/vect/vect-82_64.c
===================================================================
--- gcc.dg/vect/vect-82_64.c    (revision 237739)
+++ gcc.dg/vect/vect-82_64.c    (working copy)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { { powerpc*-*-* && lp64 } && powerpc_altivec_ok } } } 
*/
 /* { dg-do compile { target { { powerpc*-*-* && ilp32 } && powerpc_altivec_ok 
} } } */
-/* { dg-options "-O2 -ftree-vectorize -mpowerpc64 -fdump-tree-vect-details 
-maltivec" } */
+/* { dg-additional-options "-mpowerpc64 -maltivec" } */
 /* { dg-skip-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
 
 #include <stdarg.h>
Index: gcc.dg/vect/vect-83_64.c
===================================================================
--- gcc.dg/vect/vect-83_64.c    (revision 237739)
+++ gcc.dg/vect/vect-83_64.c    (working copy)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { { powerpc*-*-* && lp64 } && powerpc_altivec_ok } } } 
*/
 /* { dg-do compile { target { { powerpc*-*-* && ilp32 } && powerpc_altivec_ok 
} } } */
-/* { dg-options "-O2 -ftree-vectorize -mpowerpc64 -fdump-tree-vect-details 
-maltivec" } */
+/* { dg-additional-options "-mpowerpc64 -maltivec" } */
 /* { dg-skip-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
 
 #include <stdarg.h>
Index: gcc.dg/vect/vect-debug-pr41926.c
===================================================================
--- gcc.dg/vect/vect-debug-pr41926.c    (revision 237739)
+++ gcc.dg/vect/vect-debug-pr41926.c    (working copy)
@@ -1,7 +1,6 @@
 /* PR debug/41926 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -g -ffast-math -funroll-loops -ftree-vectorize -msse2" { 
target { i?86-*-* x86_64-*-* } } } */
-/* { dg-require-effective-target sse2 { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-additional-options "-g -ffast-math -funroll-loops" } */
 
 void
 foo (double (*__restrict p)[4], double (*__restrict q)[4],
Index: gcc.dg/vect/vect-shift-2-big-array.c
===================================================================
--- gcc.dg/vect/vect-shift-2-big-array.c        (revision 237739)
+++ gcc.dg/vect/vect-shift-2-big-array.c        (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-Wno-shift-overflow" } */
+/* { dg-additional-options "-Wno-shift-overflow" } */
 /* { dg-require-effective-target vect_shift } */
 /* { dg-require-effective-target vect_int } */
 /* Check the standard integer types for left and right shifts to see if the
Index: gcc.dg/vect/vect-shift-2.c
===================================================================
--- gcc.dg/vect/vect-shift-2.c  (revision 237739)
+++ gcc.dg/vect/vect-shift-2.c  (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-Wno-shift-overflow" } */
+/* { dg-additional-options "-Wno-shift-overflow" } */
 /* { dg-require-effective-target vect_shift } */
 /* { dg-require-effective-target vect_int } */
 /* Check the standard integer types for left and right shifts to see if the
Index: gfortran.dg/vect/fast-math-mgrid-resid.f
===================================================================
--- gfortran.dg/vect/fast-math-mgrid-resid.f    (revision 237739)
+++ gfortran.dg/vect/fast-math-mgrid-resid.f    (working copy)
@@ -1,7 +1,6 @@
-! { dg-do compile { target i?86-*-* x86_64-*-* } }
+! { dg-do compile }
 ! { dg-require-effective-target vect_double }
-! { dg-require-effective-target sse2 }
-! { dg-options "-O3 -ffast-math -msse2 -fpredictive-commoning -ftree-vectorize 
-fdump-tree-pcom-details" }
+! { dg-options "-O3 -fpredictive-commoning -fdump-tree-pcom-details" }
 
 
 ******* RESID COMPUTES THE RESIDUAL:  R = V - AU
Index: gfortran.dg/vect/pr39318.f90
===================================================================
--- gfortran.dg/vect/pr39318.f90        (revision 237739)
+++ gfortran.dg/vect/pr39318.f90        (working copy)
@@ -1,5 +1,5 @@
 ! { dg-do compile { target fopenmp } } 
-! { dg-options "-c -fopenmp -fexceptions -O2 -ftree-vectorize" } 
+! { dg-additional-options "-fopenmp -fexceptions" } 
 
       subroutine adw_trajsp (F_u,i0,in,j0,jn)
       implicit none
Index: gfortran.dg/vect/pr45714-a.f
===================================================================
--- gfortran.dg/vect/pr45714-a.f        (revision 237739)
+++ gfortran.dg/vect/pr45714-a.f        (working copy)
@@ -1,5 +1,5 @@
 ! { dg-do compile { target i?86-*-* x86_64-*-* } }
-! { dg-options "-O3 -march=core2 -mavx -ffast-math -mveclibabi=svml" }
+! { dg-additional-options "-O3 -march=core2 -mavx -ffast-math 
-mveclibabi=svml" }
 
       integer index(18),i,j,k,l,ipiv(18),info,ichange,neq,lda,ldb,
      &  nrhs,iplas
Index: gfortran.dg/vect/pr45714-b.f
===================================================================
--- gfortran.dg/vect/pr45714-b.f        (revision 237739)
+++ gfortran.dg/vect/pr45714-b.f        (working copy)
@@ -1,5 +1,5 @@
 ! { dg-do compile { target powerpc*-*-* } }
-! { dg-options "-O3 -mcpu=power7 -ffast-math -mveclibabi=mass" }
+! { dg-additional-options "-O3 -mcpu=power7 -ffast-math -mveclibabi=mass" }
 
       integer index(18),i,j,k,l,ipiv(18),info,ichange,neq,lda,ldb,
      &  nrhs,iplas
Index: gfortran.dg/vect/pr46213.f90
===================================================================
--- gfortran.dg/vect/pr46213.f90        (revision 237739)
+++ gfortran.dg/vect/pr46213.f90        (working copy)
@@ -1,5 +1,5 @@
 ! { dg-do compile }
-! { dg-options "-O -fno-tree-loop-ivcanon -ftree-vectorize -fno-tree-ccp 
-fno-tree-ch -finline-small-functions" }
+! { dg-additional-options "-O -fno-tree-loop-ivcanon -fno-tree-ccp 
-fno-tree-ch -finline-small-functions" }
 
 module foo
   INTEGER, PARAMETER :: ONE = 1

Reply via email to