+2016-06-23 Uros Bizjak <ubizjak@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.
+
2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
Bill Schmidt <wschmidt@linux.vnet.ibm.com>
/* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize" } */
+/* { dg-additional-options "-O3" } */
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
/* { 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 <tbm@cyrius.com> */
/* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize -fnon-call-exceptions" } */
+/* { dg-additional-options "-O1 -fnon-call-exceptions" } */
struct A
{
/* { 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
{
/* { dg-do compile } */
-/* { dg-options "-O3" } */
+/* { dg-additional-options "-O3" } */
struct A
{
/* PR tree-optimization/45241 */
/* { dg-do compile } */
-/* { dg-options "-ftree-vectorize" } */
int
foo (short x)
/* { dg-do compile } */
-/* { dg-options "-O -ftree-vectorize -funroll-loops" } */
+/* { dg-additional-options "-O -funroll-loops" } */
void foo();
void bar(int j)
/* { 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 *);
-/* { dg-options "-Wno-shift-overflow" } */
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-shift-overflow" } */
void DOSMEM_FillIsrTable(int*isr) {
int i;
/* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-vect-details" } */
+/* { dg-additional-options "-O3" } */
#define COLS 8
#define ROWS 8
/* PR debug/42395 */
/* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize -g" } */
+/* { dg-additional-options "-O3 -g" } */
void foo(int j, int *A)
{
/* 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;
/* { dg-do compile } */
-/* { dg-options "-O -ftree-vectorize -fdump-tree-vect-details -fexceptions" } */
+/* { dg-additional-options "-O -fexceptions" } */
typedef __attribute__ ((const)) int (*bart) (void);
/* { 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
{
/* { 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);
/* 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
-/* { 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];
main ()
{
int i;
+ check_vect ();
for (i = 0; i < 60; i++)
c[i] = 1;
for (; i < 64; i++)
/* { dg-do compile } */
-/* { dg-options "-O1 -ftree-vectorize" } */
+/* { dg-additional-options "-O1" } */
void foo (unsigned long int);
/* { dg-do compile } */
-/* { dg-options "-O3 -ftree-vectorize" } */
+/* { dg-additional-options "-O3" } */
+
unsigned short a, e;
int *b, *d;
int c;
/* { dg-do compile } */
-/* { dg-options "-fdump-tree-optimized" } */
+/* { dg-additional-options "-fdump-tree-optimized" } */
int
foo (int integral, int decimal, int power_ten)
/* PR tree-optimization/56695 */
/* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize" } */
int a, b, i;
/* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
/* { dg-require-effective-target vect_double } */
struct omp_data_i
-/* { 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 */
/* -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 {
main()
{
AP p = foo(3);
+ check_vect ();
return p->map[30] - p->map[20] - p->map[10];
}
/* 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
/* 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"
/* { 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>
/* { 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>
/* 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],
-/* { 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
-/* { 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
-! { 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
! { 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
! { 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
! { 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
! { 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