* [PATCH, i386]: Add target x86_64-*-* to many tests
@ 2014-11-02 21:35 Uros Bizjak
2014-11-03 8:29 ` Uros Bizjak
0 siblings, 1 reply; 2+ messages in thread
From: Uros Bizjak @ 2014-11-02 21:35 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 842 bytes --]
On Sun, Nov 2, 2014 at 8:31 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Attached (mechanical) patch adds i?86-*-* target to many tests, where
> only x86_64-*-* is listed. Please note that x86_64-*-* already
> included && lp64 for 64bit specific tests due to -m32 multilib
> testing.
Following patch adds missing x86_64-*-* target in the same way.
2014-11-02 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/cpp0x/gen-attrs-42.C: Add x86_64-*-* target.
* g++.dg/ext/attrib42.C: Ditto.
* g++.dg/torture/pr51344.C: Ditto.
* g++.dg/tree-ssa/pr29902.C: Ditto.
* gcc.c-torture/execute/20010129-1.c: Ditto.
* gcc.dg/combine_ashiftrt_2.c: Ditto.
* gcc.dg/march-generic.c: Ditto.
* gcc.dg/torture/pr17526.c: Ditto.
* gcc.dg/union-4.c: Ditto.
Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.
Uros.
[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 3828 bytes --]
Index: g++.dg/cpp0x/gen-attrs-42.C
===================================================================
--- g++.dg/cpp0x/gen-attrs-42.C (revision 216994)
+++ g++.dg/cpp0x/gen-attrs-42.C (working copy)
@@ -1,5 +1,5 @@
// { dg-options "-pedantic" }
-// { dg-do compile { target { i?86-*-* && ilp32 } } }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
// { dg-require-effective-target c++11 }
struct A {
Index: g++.dg/ext/attrib42.C
===================================================================
--- g++.dg/ext/attrib42.C (revision 216994)
+++ g++.dg/ext/attrib42.C (working copy)
@@ -1,4 +1,4 @@
-// { dg-do compile { target { i?86-*-* && ilp32 } } }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
struct A {
__attribute__((fastcall))
Index: g++.dg/torture/pr51344.C
===================================================================
--- g++.dg/torture/pr51344.C (revision 216994)
+++ g++.dg/torture/pr51344.C (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { i?86-*-* && ilp32 } } } */
+/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
class A;
template <class T>
Index: g++.dg/tree-ssa/pr29902.C
===================================================================
--- g++.dg/tree-ssa/pr29902.C (revision 216994)
+++ g++.dg/tree-ssa/pr29902.C (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O1 -fprefetch-loop-arrays -march=athlon" } */
/* { dg-require-effective-target ilp32 } */
Index: gcc.c-torture/execute/20010129-1.c
===================================================================
--- gcc.c-torture/execute/20010129-1.c (revision 216994)
+++ gcc.c-torture/execute/20010129-1.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-mtune=i686" { target { { i?86*-*-* } && ilp32 } } } */
+/* { dg-options "-mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
extern void abort (void);
extern void exit (int);
Index: gcc.dg/combine_ashiftrt_2.c
===================================================================
--- gcc.dg/combine_ashiftrt_2.c (revision 216994)
+++ gcc.dg/combine_ashiftrt_2.c (working copy)
@@ -1,4 +1,5 @@
-/* { dg-do compile {target arm*-*-* i?86-*-* powerpc-*-* sparc-*-*} } */
+/* { dg-do compile {target arm*-*-* i?86-*-* x86_64-*-* powerpc-*-* sparc-*-*} } */
+/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -fdump-rtl-combine-all" } */
typedef long int32_t;
Index: gcc.dg/march-generic.c
===================================================================
--- gcc.dg/march-generic.c (revision 216994)
+++ gcc.dg/march-generic.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-skip-if "" { *-*-* } { "-march=*" } { "" } } */
/* { dg-options "-march=generic" } */
/* { dg-error "generic CPU can be used only for -mtune" "" { target *-*-* } 0 } */
Index: gcc.dg/torture/pr17526.c
===================================================================
--- gcc.dg/torture/pr17526.c (revision 216994)
+++ gcc.dg/torture/pr17526.c (working copy)
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-fno-pcc-struct-return" { target i?86-*-* } } */
+/* { dg-options "-fno-pcc-struct-return" { target i?86-*-* x86_64-*-* } } */
void abort(void);
Index: gcc.dg/union-4.c
===================================================================
--- gcc.dg/union-4.c (revision 216994)
+++ gcc.dg/union-4.c (working copy)
@@ -19,5 +19,5 @@
abort ();
}
-/* { dg-final { scan-rtl-dump-not "abort" "cse1" { target i?86-*-* } } } */
+/* { dg-final { scan-rtl-dump-not "abort" "cse1" { target i?86-*-* x86_64-*-* } } } */
/* { dg-final { cleanup-rtl-dump "cse1" } } */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH, i386]: Add target x86_64-*-* to many tests
2014-11-02 21:35 [PATCH, i386]: Add target x86_64-*-* to many tests Uros Bizjak
@ 2014-11-03 8:29 ` Uros Bizjak
0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2014-11-03 8:29 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
On Sun, Nov 2, 2014 at 10:35 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
>> Attached (mechanical) patch adds i?86-*-* target to many tests, where
>> only x86_64-*-* is listed. Please note that x86_64-*-* already
>> included && lp64 for 64bit specific tests due to -m32 multilib
>> testing.
>
> Following patch adds missing x86_64-*-* target in the same way.
And following patch fixes x32 fallout.
2014-11-03 Uros Bizjak <ubizjak@gmail.com>
* gcc.c-torture/execute/20010129-1.c: Compile with -mtune=i686
for ia32 targets only.
* g++.dg/ext/attrib42.C: Compile for ia32 targets only.
* g++.dg/tree-ssa/pr29902.C: Ditto.
* g++.dg/cpp0x/gen-attrs-42.C: Ditto.
Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.
Uros.
[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 1759 bytes --]
Index: gcc.c-torture/execute/20010129-1.c
===================================================================
--- gcc.c-torture/execute/20010129-1.c (revision 217029)
+++ gcc.c-torture/execute/20010129-1.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+/* { dg-options "-mtune=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
extern void abort (void);
extern void exit (int);
Index: g++.dg/ext/attrib42.C
===================================================================
--- g++.dg/ext/attrib42.C (revision 217029)
+++ g++.dg/ext/attrib42.C (working copy)
@@ -1,4 +1,4 @@
-// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
struct A {
__attribute__((fastcall))
Index: g++.dg/tree-ssa/pr29902.C
===================================================================
--- g++.dg/tree-ssa/pr29902.C (revision 217029)
+++ g++.dg/tree-ssa/pr29902.C (working copy)
@@ -1,6 +1,5 @@
-/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
/* { dg-options "-O1 -fprefetch-loop-arrays -march=athlon" } */
-/* { dg-require-effective-target ilp32 } */
int length1();
int g(int);
Index: g++.dg/cpp0x/gen-attrs-42.C
===================================================================
--- g++.dg/cpp0x/gen-attrs-42.C (revision 217029)
+++ g++.dg/cpp0x/gen-attrs-42.C (working copy)
@@ -1,5 +1,5 @@
// { dg-options "-pedantic" }
-// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
// { dg-require-effective-target c++11 }
struct A {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-03 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-02 21:35 [PATCH, i386]: Add target x86_64-*-* to many tests Uros Bizjak
2014-11-03 8:29 ` Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).