This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix up pr44194-1.c testcase (PR testsuite/64158)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>, Mike Stump <mikestump at comcast dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Feb 2015 15:43:30 +0100
- Subject: [PATCH] Fix up pr44194-1.c testcase (PR testsuite/64158)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
As written in the PR, this testcase is supposed to be blacklisted on
(lp64) powerpc*-*-linux* unless powerpc_elfv2 and also on nvptx,
but apparently neither of those blacklistings really work.
tcl or dejagnu or the target expression parser are unhappy about the
missing {}s, it doesn't like cond1 && cond2 && cond3 but wants
{ { cond1 && cond2 } && cond3 } instead (fixes the powerpc* blacklisting)
and was missing another pair of {}s around the whole thing (that should fix
nvptx).
Regtested on x86_64-linux and i686-linux, additionally tested with
replacing the various targets in the expression with x86_64-*-* instead
and checking the test became UNSUPPORTED as it should. Ok for trunk?
2015-02-20 Jakub Jelinek <jakub@redhat.com>
PR testsuite/64158
* gcc.dg/pr44194-1.c: Add two extra {} pairs to fix up powerpc*-*-linux*
and nvptx-*-* blacklisting.
--- gcc/testsuite/gcc.dg/pr44194-1.c.jj 2014-11-11 00:06:05.000000000 +0100
+++ gcc/testsuite/gcc.dg/pr44194-1.c 2015-02-20 12:45:55.419301827 +0100
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { { { { { { { { i?86-*-* x86_64-*-* } && x32 } || lp64 } && { ! s390*-*-* } } && { ! hppa*64*-*-* } } && { ! alpha*-*-* } } && { { ! powerpc*-*-linux* } || powerpc_elfv2 } && { ! nvptx-*-* } } } } } */
+/* { dg-do compile { target { { { { { { { { { { i?86-*-* x86_64-*-* } && x32 } || lp64 } && { ! s390*-*-* } } && { ! hppa*64*-*-* } } && { ! alpha*-*-* } } && { { ! powerpc*-*-linux* } || powerpc_elfv2 } } && { ! nvptx-*-* } } } } } } */
/* { dg-options "-O2 -fdump-rtl-dse1 -fdump-rtl-final" } */
/* Restrict to 64-bit targets since 32-bit targets usually return small
Jakub