Commit 67ea3f4e by Rainer Orth Committed by Rainer Orth

Always check for target i?86 and x86_64

	libstdc++-v3:
	* testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
	lp64 targets.

	gcc/testsuite:
	* c-c++-common/fold-masked-cmp-1.c: Allow for i?86-*-* target.
	* c-c++-common/fold-masked-cmp-2.c: Likewise.
	* c-c++-common/fold-masked-cmp-3.c: Likewise.
	* g++.dg/cpp0x/alignas4.C: Allow for i?86-*-* target, don't
	restrict to x86_64-*-*-gnu.
	Skip scan-assembler on *-*-darwin*.
	* g++.dg/vect/pr70944.cc: Allow for i?86-*-* target.
	* gcc.dg/loop-invariant.c: Likewise.
	* gcc.dg/lto/pr70955_0.c: Likewise.
	* gcc.dg/tree-ssa/pr69196-1.c: Likewise.
	* gcc.dg/tree-ssa/pr79803.c: Likewise.
	* gfortran.dg/pr68078.f90: Allow for i?86-*-linux*.

	* g++.dg/debug/dwarf2/const2b.C: Allow for x86_64-*-* target.
	* gcc.dg/attr-ms_struct-1.c: Allow for all i?86-*-*, x86_64-*-*
	targets.
	* gcc.dg/attr-ms_struct-2.c: Likewise.
	* gcc.dg/attr-ms_struct-packed1.c: Likewise.
	* gcc.dg/bf-ms-layout.c: Likewise.
	* gcc.dg/bf-ms-layout-2.c: Likewise.
	* gcc.dg/pic-macro-define.c: Remove target restrictions.
	Require fpic support.
	* gcc.target/i386/bitfield1.c: Allow for all i?86-*-*, x86_64-*-*
	targets.
	* gcc.target/i386/bitfield2.c: Likewise.
	* gcc.target/i386/darwin-fpmath.c: Allow for x86_64-*-darwin*
	targets.
	* gfortran.dg/fmt_pf.f90: Remove i?86-*-solaris2.9* from xfail.

From-SVN: r249409
parent 71bbbd13
2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* c-c++-common/fold-masked-cmp-1.c: Allow for i?86-*-* target.
* c-c++-common/fold-masked-cmp-2.c: Likewise.
* c-c++-common/fold-masked-cmp-3.c: Likewise.
* g++.dg/cpp0x/alignas4.C: Allow for i?86-*-* target, don't
restrict to x86_64-*-*-gnu.
Skip scan-assembler on *-*-darwin*.
* g++.dg/vect/pr70944.cc: Allow for i?86-*-* target.
* gcc.dg/loop-invariant.c: Likewise.
* gcc.dg/lto/pr70955_0.c: Likewise.
* gcc.dg/tree-ssa/pr69196-1.c: Likewise.
* gcc.dg/tree-ssa/pr79803.c: Likewise.
* gfortran.dg/pr68078.f90: Allow for i?86-*-linux*.
* g++.dg/debug/dwarf2/const2b.C: Allow for x86_64-*-* target.
* gcc.dg/attr-ms_struct-1.c: Allow for all i?86-*-*, x86_64-*-*
targets.
* gcc.dg/attr-ms_struct-2.c: Likewise.
* gcc.dg/attr-ms_struct-packed1.c: Likewise.
* gcc.dg/bf-ms-layout.c: Likewise.
* gcc.dg/bf-ms-layout-2.c: Likewise.
* gcc.dg/pic-macro-define.c: Remove target restrictions.
Require fpic support.
* gcc.target/i386/bitfield1.c: Allow for all i?86-*-*, x86_64-*-*
targets.
* gcc.target/i386/bitfield2.c: Likewise.
* gcc.target/i386/darwin-fpmath.c: Allow for x86_64-*-darwin*
targets.
* gfortran.dg/fmt_pf.f90: Remove i?86-*-solaris2.9* from xfail.
2017-06-20 Nathan Sidwell <nathan@acm.org> 2017-06-20 Nathan Sidwell <nathan@acm.org>
PR c++/67074 PR c++/67074
......
/* Based on PR 67328 */ /* Based on PR 67328 */
/* { dg-do compile { target x86_64-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
enum output_type enum output_type
......
/* Based on PR 67328 */ /* Based on PR 67328 */
/* { dg-do compile { target x86_64-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
enum output_type enum output_type
......
/* { dg-do compile { target x86_64-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-fdump-tree-original" } */ /* { dg-options "-fdump-tree-original" } */
void foo (int *p, int x) void foo (int *p, int x)
......
// PR c++/59012 // PR c++/59012
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "align 8" { target x86_64-*-*-gnu } } } // { dg-final { scan-assembler "align 8" { target { { i?86-*-* x86_64-*-* } && { ! *-*-darwin* } } } } }
template <class... T> template <class... T>
struct A struct A
......
/* { dg-do compile { target i386*-*-* } } */ /* { dg-do compile { target i386*-*-* x86_64-*-* } } */
/* { dg-options "-O -gdwarf-2 -dA -msse" } */ /* { dg-options "-O -gdwarf-2 -dA -msse" } */
/* { dg-require-effective-target sse } */ /* { dg-require-effective-target sse } */
/* { dg-final { scan-assembler "DW_AT_const_value" } } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */
......
/* { dg-do compile { target x86_64-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-additional-options "-O3 -march=core-avx2" } */ /* { dg-additional-options "-O3 -march=core-avx2" } */
unsigned *a; unsigned *a;
......
/* Test for MS structure sizes. */ /* Test for MS structure sizes. */
/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99" } */ /* { dg-options "-std=gnu99" } */
......
/* Test for MS structure sizes. */ /* Test for MS structure sizes. */
/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99" } */ /* { dg-options "-std=gnu99" } */
......
/* Test for MS structure with packed attribute. */ /* Test for MS structure with packed attribute. */
/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } /* { dg-do run { target i?86-*-* x86_64-*-* } }
/* { dg-options "-std=gnu99" } */ /* { dg-options "-std=gnu99" } */
extern void abort (); extern void abort ();
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
posted to GCC-patches posted to GCC-patches
http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-D_TEST_MS_LAYOUT" } */ /* { dg-options "-D_TEST_MS_LAYOUT" } */
/* This test uses the attribute instead of the command line option. */ /* This test uses the attribute instead of the command line option. */
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
posted to GCC-patches posted to GCC-patches
http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-mms-bitfields -D_TEST_MS_LAYOUT" } */ /* { dg-options "-mms-bitfields -D_TEST_MS_LAYOUT" } */
#include <stddef.h> #include <stddef.h>
......
/* { dg-do compile { target x86_64-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fdump-rtl-loop2_invariant" } */ /* { dg-options "-O2 -fdump-rtl-loop2_invariant" } */
/* NOTE: The target list above could be extended to other targets that have /* NOTE: The target list above could be extended to other targets that have
conditional moves, but don't have zero registers. */ conditional moves, but don't have zero registers. */
......
/* __builtin_ms_va_list is only supported for x86_64 -m64. */ /* __builtin_ms_va_list is only supported for x86 -m64. */
/* { dg-skip-if "" { ! {x86_64-*-* && { ! ilp32 } } } } */ /* { dg-skip-if "" { ! { { i?86-*-* x86_64-*-* } && { ! ilp32 } } } } */
#include <stdio.h> #include <stdio.h>
......
/* { dg-do run { target "i?86-*-*-darwin" powerpc*-*-darwin* } } */ /* { dg-do run } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */ /* { dg-options "-fPIC" } */
#if defined __PIC__ #if defined __PIC__
......
/* { dg-do compile { target sparc*-*-* x86_64-*-* } } */ /* { dg-do compile { target sparc*-*-* i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fdump-tree-thread1-details -fdisable-tree-ethread" } */ /* { dg-options "-O2 -fdump-tree-thread1-details -fdisable-tree-ethread" } */
/* { dg-final { scan-tree-dump "FSM did not thread around loop and would copy too many statements" "thread1" } } */ /* { dg-final { scan-tree-dump "FSM did not thread around loop and would copy too many statements" "thread1" } } */
......
/* { dg-do compile { target { x86_64-*-* } } } */ /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-march=opteron-sse3 -Ofast --param l1-cache-line-size=3 -Wdisabled-optimization" } */ /* { dg-options "-march=opteron-sse3 -Ofast --param l1-cache-line-size=3 -Wdisabled-optimization" } */
/* { dg-require-effective-target indirect_jumps } */ /* { dg-require-effective-target indirect_jumps } */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// { dg-do run } // { dg-do run }
// { dg-require-effective-target ia32 } // { dg-require-effective-target ia32 }
// { dg-options "-O2" } // { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-mingw*} } // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-* x86_64-*-* } }
extern void abort (void); extern void abort (void);
extern void exit (int); extern void exit (int);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// { dg-do run } // { dg-do run }
// { dg-require-effective-target ia32 } // { dg-require-effective-target ia32 }
// { dg-options "-O2" } // { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-mingw* } } // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-* x86_64-*-* } }
extern void abort (void); extern void abort (void);
extern void exit (int); extern void exit (int);
......
/* { dg-do compile { target i?86-*-darwin* } } */ /* { dg-do compile { target i?86-*-darwin* x86_64-*-darwin* } } */
/* { dg-final { scan-assembler "addsd" } } */ /* { dg-final { scan-assembler "addsd" } } */
/* Do not add -msse or -msse2 or -mfpmath=sse to the options. GCC is /* 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 supposed to use SSE math on Darwin by default, and libm won't work
......
...@@ -223,4 +223,4 @@ contains ...@@ -223,4 +223,4 @@ contains
end subroutine end subroutine
end program end program
! { dg-output "All kinds rounded to nearest" { xfail { i?86-*-solaris2.9* hppa*-*-hpux* } } } ! { dg-output "All kinds rounded to nearest" { xfail { hppa*-*-hpux* } } }
! { dg-do run { target x86_64-*-linux* } } ! { dg-do run { target i?86-*-linux* x86_64-*-linux* } }
! { dg-additional-sources set_vm_limit.c } ! { dg-additional-sources set_vm_limit.c }
! !
! This test calls set_vm_limit to set an artificially low address space ! This test calls set_vm_limit to set an artificially low address space
......
2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
lp64 targets.
2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate. * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
......
// { dg-options "-std=gnu++17" } // { dg-options "-std=gnu++17" }
// { dg-do compile { target x86_64-*-* powerpc*-*-* } } // { dg-do compile { target { ilp32 || lp64 } } }
// Copyright (C) 2017 Free Software Foundation, Inc. // Copyright (C) 2017 Free Software Foundation, Inc.
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment