20030926-1.c: Add dg-additional-options.
authorUros Bizjak <uros@gcc.gnu.org>
Tue, 29 Aug 2017 17:21:21 +0000 (19:21 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 29 Aug 2017 17:21:21 +0000 (19:21 +0200)
* gcc.target/i386/20030926-1.c: Add dg-additional-options.
* gcc.target/i386/abi-2.c: Ditto.
* gcc.target/i386/interrupt-sibcall-2.c: Ditto.
* gcc.target/i386/pr22076.c: Ditto.
* gcc.target/i386/pr37216.c: Ditto.
* gcc.target/i386/pr39431.c: Ditto.
* gcc.target/i386/pr40906-1.c: Ditto.
* gcc.target/i386/pr40906-2.c: Ditto.
* gcc.target/i386/pr43766.c: Ditto.
* gcc.target/i386/pr46226.c: Ditto.
* gcc.target/i386/pr46470.c: Ditto.
* gcc.target/i386/pr59929.c: Ditto.
* gcc.target/i386/sse-10.c: Ditto.
* gcc.target/i386/vararg-1.c: Ditto.
* gcc.target/i386/vararg-1.c: Ditto.
* gcc.target/i386/asm-6.c: Compile for fpic target only.
* gcc.target/i386/pr44223.c: Ditto.
* gcc.target/i386/bitfield1.c (dg-options): Remove target selector.
* gcc.target/i386/bitfield2.c (dg-options): Ditto.
* gcc.target/i386/pr67480.c (dg-options): Ditto.
* gcc.target/i386/vect-cond-1.c (dg-options): Ditto.
* gcc.target/i386/bittest.c (scan-assembler-times): Ditto.
* gcc.target/i386/darwin-fpmath.c (dg-do): Simplify target selector.
* gcc.target/i386/mvc9.c: Compile for lto target only.
* gcc.target/i386/pr45234.c: Compile for ia32 target only.
* gcc.target/i386/pr49866.c: Compile for lp64 target only.
* gcc.target/i386/pr57091.c: Ditto.
* gcc.target/i386/pr61599-2.c: Ditto.

From-SVN: r251417

30 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/20030926-1.c
gcc/testsuite/gcc.target/i386/abi-2.c
gcc/testsuite/gcc.target/i386/asm-6.c
gcc/testsuite/gcc.target/i386/bitfield1.c
gcc/testsuite/gcc.target/i386/bitfield2.c
gcc/testsuite/gcc.target/i386/bittest.c
gcc/testsuite/gcc.target/i386/darwin-fpmath.c
gcc/testsuite/gcc.target/i386/interrupt-sibcall-2.c
gcc/testsuite/gcc.target/i386/mvc9.c
gcc/testsuite/gcc.target/i386/pr22076.c
gcc/testsuite/gcc.target/i386/pr37216.c
gcc/testsuite/gcc.target/i386/pr39431.c
gcc/testsuite/gcc.target/i386/pr40906-1.c
gcc/testsuite/gcc.target/i386/pr40906-2.c
gcc/testsuite/gcc.target/i386/pr43766.c
gcc/testsuite/gcc.target/i386/pr44223.c
gcc/testsuite/gcc.target/i386/pr45234.c
gcc/testsuite/gcc.target/i386/pr46226.c
gcc/testsuite/gcc.target/i386/pr46470.c
gcc/testsuite/gcc.target/i386/pr49866.c
gcc/testsuite/gcc.target/i386/pr57091.c
gcc/testsuite/gcc.target/i386/pr59929.c
gcc/testsuite/gcc.target/i386/pr61599-2.c
gcc/testsuite/gcc.target/i386/pr67480.c
gcc/testsuite/gcc.target/i386/sse-10.c
gcc/testsuite/gcc.target/i386/vararg-1.c
gcc/testsuite/gcc.target/i386/vararg-2.c
gcc/testsuite/gcc.target/i386/vect-cond-1.c
gcc/testsuite/gcc.target/i386/vect8-ret.c

index 23fc398..1a4207c 100644 (file)
@@ -1,3 +1,34 @@
+2017-08-29  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/20030926-1.c: Add dg-additional-options.
+       * gcc.target/i386/abi-2.c: Ditto.
+       * gcc.target/i386/interrupt-sibcall-2.c: Ditto.
+       * gcc.target/i386/pr22076.c: Ditto.
+       * gcc.target/i386/pr37216.c: Ditto.
+       * gcc.target/i386/pr39431.c: Ditto.
+       * gcc.target/i386/pr40906-1.c: Ditto.
+       * gcc.target/i386/pr40906-2.c: Ditto.
+       * gcc.target/i386/pr43766.c: Ditto.
+       * gcc.target/i386/pr46226.c: Ditto.
+       * gcc.target/i386/pr46470.c: Ditto.
+       * gcc.target/i386/pr59929.c: Ditto.
+       * gcc.target/i386/sse-10.c: Ditto.
+       * gcc.target/i386/vararg-1.c: Ditto.
+       * gcc.target/i386/vararg-1.c: Ditto.
+       * gcc.target/i386/asm-6.c: Compile for fpic target only.
+       * gcc.target/i386/pr44223.c: Ditto.
+       * gcc.target/i386/bitfield1.c (dg-options): Remove target selector.
+       * gcc.target/i386/bitfield2.c (dg-options): Ditto.
+       * gcc.target/i386/pr67480.c (dg-options): Ditto.
+       * gcc.target/i386/vect-cond-1.c (dg-options): Ditto.
+       * gcc.target/i386/bittest.c (scan-assembler-times): Ditto.
+       * gcc.target/i386/darwin-fpmath.c (dg-do): Simplify target selector.
+       * gcc.target/i386/mvc9.c: Compile for lto target only.
+       * gcc.target/i386/pr45234.c: Compile for ia32 target only.
+       * gcc.target/i386/pr49866.c: Compile for lp64 target only.
+       * gcc.target/i386/pr57091.c: Ditto.
+       * gcc.target/i386/pr61599-2.c: Ditto.
+
 2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR tree-optimization/81503
 
 2017-08-29  Martin Liska  <mliska@suse.cz>
 
-       * gcc.dg/tree-prof/update-loopch.c: Scan patterns in
-       switchlower.
+       * gcc.dg/tree-prof/update-loopch.c: Scan patterns in switchlower.
        * gcc.dg/tree-ssa/vrp104.c: Likewise.
 
 2017-08-29  Richard Biener  <rguenther@suse.de>
-       Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
+           Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
 
        * gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp.c: New testcase.
 
 
 2017-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
-       * gcc.target/powerpc/dform-1.c: Delete -mpower9-dform*
-       options.
+       * gcc.target/powerpc/dform-1.c: Delete -mpower9-dform* options.
        * gcc.target/powerpc/dform-2.c: Likewise.
        * gcc.target/powerpc/dform-3.c: Likewise.
        * gcc.target/powerpc/pr71656-1.c: Likewise.
 
 2017-08-24  Steven Munroe  <munroesj@gcc.gnu.org>
 
-       * gcc.target/powerpc/mmx-packuswb-1.c [NO_WARN_X86_INTRINSICS]:
-       Define.  Suppress warning during tests.
+       * gcc.target/powerpc/mmx-packuswb-1.c [NO_WARN_X86_INTRINSICS]: Define.
+       Suppress warning during tests.
 
 2017-08-24  Uros Bizjak  <ubizjak@gmail.com>
 
index ebde340..f4c8f61 100644 (file)
@@ -1,7 +1,7 @@
 /* PR optimization/11741  */
 /* { dg-do compile } */
 /* { dg-options "-O2 -minline-all-stringops" } */
-/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target ia32 } } */
+/* { dg-additional-options "-march=pentium4" { target ia32 } } */
 
 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
 extern __SIZE_TYPE__ strlen (const char *);
index 39eafc2..72a17ec 100644 (file)
@@ -1,7 +1,7 @@
 /* Make certain that we pass __m256i in the correct register for AVX.  */
 /* { dg-do compile } */
 /* { dg-options "-O1 -mavx" } */
-/* { dg-options "-mabi=sysv -O1 -mavx" { target x86_64-*-mingw* } } */
+/* { dg-additional-options "-mabi=sysv" { target x86_64-*-mingw* } } */
 
 typedef long long __m256i __attribute__ ((__vector_size__ (32)));
 __m256i foo (void) { return (__m256i){ 1, 2, 3, 4 }; }
index 6aa37ef..225e319 100644 (file)
@@ -1,8 +1,8 @@
 /* PR rtl-optimization/44174 */
 /* Testcase by Jakub Jelinek <jakub@gcc.gnu.org> */
 
-/* { dg-do compile } */
-/* { dg-options "-O2 -fpic" { target fpic } } */
+/* { dg-do compile { target fpic } } */
+/* { dg-options "-O2 -fpic" } */
 
 int f0 (int, int, int, int, int);
 int f1 (void);
index 714792c..ecc7efe 100644 (file)
@@ -1,8 +1,7 @@
 // Test for bitfield alignment in structs on IA-32
 // { dg-do run }
 // { dg-require-effective-target ia32 }
-// { dg-options "-O2" }
-// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-* x86_64-*-* } }
+// { dg-options "-O2 -mno-align-double -mno-ms-bitfields" }
 
 extern void abort (void);
 extern void exit (int);
index 5784bf0..58f7cea 100644 (file)
@@ -1,8 +1,7 @@
 // Test for bitfield alignment in structs on IA-32
 // { dg-do run }
 // { dg-require-effective-target ia32 }
-// { dg-options "-O2" }
-// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-* x86_64-*-* } }
+// { dg-options "-O2 -mno-align-double -mno-ms-bitfields" }
 
 extern void abort (void);
 extern void exit (int);
index 7b7ce9e..79c3897 100644 (file)
@@ -19,4 +19,4 @@ gate_rtl_cprop (void)
    memory and mask off bits are unnecessary.  In theory we can just count
    the move-with-extension, and and testb instructions.  There should be
    only one.  */
-/* { dg-final { scan-assembler-times "movzbl|and|testb" 1 { target { i?86-*-* x86_64-*-*} } } } */
+/* { dg-final { scan-assembler-times "movzbl|and|testb" 1 } } */
index 693bdee..5b04701 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-darwin* x86_64-*-darwin* } } */
+/* { dg-do compile { target *-*-darwin* } } */
 /* { dg-final { scan-assembler "addsd" } } */
 /* Do not add -msse or -msse2 or -mfpmath=sse to the options.  GCC is
    supposed to use SSE math on Darwin by default, and libm won't work
index f59253a..ae2df28 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mgeneral-regs-only -mno-cld -mpreferred-stack-boundary=3" { target { ! { ia32 } } } } */
-/* { dg-options "-O3 -mgeneral-regs-only -mno-cld -mpreferred-stack-boundary=2" { target { ia32 } } } */
+/* { dg-options "-O3 -mgeneral-regs-only -mno-cld" } */
+/* { dg-additional-options "-mpreferred-stack-boundary=3" { target { ! ia32 } } }  */
+/* { dg-additional-options "-mpreferred-stack-boundary=2" { target { ia32 } } } */
 
 extern void foo (void *) __attribute__ ((interrupt));
 extern void bar (void) __attribute__ ((no_caller_saved_registers));
index 69e3cef..4052f2a 100644 (file)
@@ -1,6 +1,6 @@
-/* { dg-do run } */
+/* { dg-do run { target lto } } */
 /* { dg-require-ifunc "" } */
-/* { dg-options "-flto -O2" { target lto } } */
+/* { dg-options "-O2 -flto" } */
 
 __attribute__((target_clones("avx","arch=slm","arch=core-avx2","default")))
 int
index e9916c9..6c1620b 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx" } */
-/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx -mno-vect8-ret-in-mem" { target *-*-vxworks* } } */
+/* { dg-additional-options "-mno-vect8-ret-in-mem" { target *-*-vxworks* } } */
 
 #include <mmintrin.h>
 
index 05eb2ee..e1942fe 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O3 -msse2" } */
-/* { dg-options "-O3 -msse2 -mpe-aligned-commons" { target pe_aligned_commons } } */
+/* { dg-additional-options "-mpe-aligned-commons" { target pe_aligned_commons } } */
 /* { dg-require-effective-target sse2 } */
 
 #include "sse2-check.h"
index 0db7d56..a148dd3 100644 (file)
@@ -1,7 +1,7 @@
 /* PR target/39431 */
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-options "-O2 -march=i686 -fpic" { target { ia32 && fpic } } } */
+/* { dg-additional-options "-march=i686 -fpic" { target { ia32 && fpic } } } */
 
 extern void bar (char *, int);
 
index 233d8fd..1e78c23 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-require-effective-target ia32 } */
-/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args" } */
-/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" { target *-*-mingw* *-*-cygwin* } } */
+/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" } */
+/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* } } } } */
 
 void abort (void);
 
index 58b076e..824c432 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-require-effective-target ia32 } */
-/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args -m128bit-long-double" } */
-/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" { target *-*-mingw* *-*-cygwin* } } */
+/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" } */
+/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* } } } } */
 
 void abort (void);
 
index 8ac1613..72898cc 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-options "-O2 -msse -mregparm=3" { target ia32 } } */
+/* { dg-additional-options "-msse -mregparm=3" { target ia32 } } */
 
 void p (int *a, int i)
 {
index 3b8030c..9f134e7 100644 (file)
@@ -1,6 +1,6 @@
 /* PR debug/44223 */
-/* { dg-do compile } */
-/* { dg-options "-O3 -fsched-pressure -fschedule-insns -fpic -march=core2 -g" { target fpic } } */
+/* { dg-do compile { target fpic } } */
+/* { dg-options "-O3 -fsched-pressure -fschedule-insns -fpic -march=core2 -g" } */
 
 struct S { unsigned int s1; int s2; };
 struct T { int t; };
index 3996fa2..d0579b5 100644 (file)
@@ -1,6 +1,6 @@
 /* PR middle-end/45234 */
-/* { dg-do compile } */
-/* { dg-options "-march=i586" { target ia32 } } */
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-march=i586" } */
 
 struct S { union { double b[4]; } a[18]; } s, a[5];
 void foo (struct S);
index 168d80e..e93cbf3 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
-/* { dg-options "-Os -fomit-frame-pointer -mno-accumulate-outgoing-args -fno-asynchronous-unwind-tables" } */
-/* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" { target *-*-mingw* *-*-cygwin* } } */
+/* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" } */
+/* { dg-additional-options "-mno-accumulate-outgoing-args" { target { ! { *-*-mingw* *-*-cygwin* } } } } */
 
 extern void abort(void);
 
index c66a378..728ddcd 100644 (file)
@@ -4,8 +4,9 @@
 /* These options are selected to ensure 1 word needs to be allocated
    on the stack to maintain alignment for the call.  This should be
    transformed to push+pop.  We also want to force unwind info updates.  */
-/* { dg-options "-Os -fomit-frame-pointer -fasynchronous-unwind-tables -mno-red-zone" } */
-/* { dg-options "-Os -fomit-frame-pointer -mpreferred-stack-boundary=3 -fasynchronous-unwind-tables" { target ia32 } } */
+/* { dg-options "-Os -fomit-frame-pointer -fasynchronous-unwind-tables" } */
+/* { dg-additional-options "-mno-red-zone" { target { ! ia32 } } } */
+/* { dg-additional-options "-mpreferred-stack-boundary=3" { target ia32 } } */
 /* ms_abi has reserved stack-region.  */
 /* { dg-skip-if "" { x86_64-*-mingw* } } */
 void f();
index 823305d..622c8f6 100644 (file)
@@ -1,6 +1,6 @@
 /* PR target/49866 */
-/* { dg-do assemble } */
-/* { dg-options "-O2 -mcmodel=large" { target lp64 } } */
+/* { dg-do assemble { target lp64 } } */
+/* { dg-options "-O2 -mcmodel=large"  } */
 
 void fn (void *, int, int);
 int fn2 (void);
index 4fc7ed7..86cb5f0 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O -mcmodel=large"  { target lp64 } } */
+/* { dg-do compile { target lp64 } } */
+/* { dg-options "-O -mcmodel=large" } */
 void (*bar)();
 
 void foo (void)
index 4591dc4..53e0b23 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O0 -mno-accumulate-outgoing-args" } */
-/* { dg-options "-O0 -mno-accumulate-outgoing-args -mx32 -maddress-mode=short" { target x32 } } */
+/* { dg-additional-options "-mx32 -maddress-mode=short" { target x32 } } */
 
 void
 __attribute__ ((noinline))
index f0d4602..be031c0 100644 (file)
@@ -1,6 +1,6 @@
 /* PR target/61599 */
 /* { dg-do compile { target lp64 } } */
-/* { dg-options "-mcmodel=medium -fdata-sections" { target lp64 } } */
+/* { dg-options "-mcmodel=medium -fdata-sections" } */
 
 /* With -mcmodel=medium, all the arrays will be treated as large data.  */
 
index 90e6a6e..aa54968 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mavx512bw -O2 -ftree-vectorize" { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-mavx512bw -O2 -ftree-vectorize" } */
 
 void
 foo(const char *in, char *out, unsigned n)
index 798551d..4d4de4f 100644 (file)
@@ -1,7 +1,7 @@
 /* PR 17930 */
 /* { dg-do run } */
-/* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" } */
-/* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" { target *-*-mingw* *-*-cygwin* } } */
+/* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" } */
+/* { dg-additional-options "-mno-accumulate-outgoing-args -mno-omit-leaf-frame-pointer" { target { ! { *-*-mingw* *-*-cygwin* } } } } */
 /* { dg-require-effective-target sse2 } */
 
 #include "sse2-check.h"
index 3eda1e9..cab44ed 100644 (file)
@@ -1,8 +1,7 @@
 /* PR middle-end/36858 */
 /* { dg-do run } */
-/* { dg-options "-w" { target { ! ia32 } } } */
-/* { dg-options "-w" { target { llp64 } } } */
-/* { dg-options "-w -msse2 -mpreferred-stack-boundary=2" { target { ia32 } } } */
+/* { dg-options "-w -msse2" } */
+/* { dg-additional-options "-mpreferred-stack-boundary=2" { target { ia32 } } } */
 /* { dg-require-effective-target sse2 } */
 
 #include "sse2-check.h"
index 65599a5..3010f41 100644 (file)
@@ -1,8 +1,7 @@
 /* PR middle-end/36859 */
 /* { dg-do run } */
-/* { dg-options "-w" { target { ! ia32 } } } */
-/* { dg-options "-w" { target { llp64 } } } */
-/* { dg-options "-w -msse2 -mpreferred-stack-boundary=2" { target { ia32 } } } */
+/* { dg-options "-w -msse2" } */
+/* { dg-additional-options "-mpreferred-stack-boundary=2" { target { ia32 } } } */
 /* { dg-require-effective-target sse2 } */
 
 #include "sse2-check.h"
index 7cea691..1bf7aa2 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -mavx2" { target avx2 } } */
+/* { dg-options "-O2 -ftree-vectorize -mavx2" } */
 
 int a[1024];
 
index 09283d7..2b2b81e 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile { target ia32 } } */
-/* { dg-options "-mmmx" { target *-*-vxworks* } } */
+/* { dg-do compile { target { ia32 && { ! *-*-vxworks* } } } } */
 /* { dg-options "-mmmx -mvect8-ret-in-mem" } */
 
 #include <mmintrin.h>