From patchwork Fri May 20 14:38:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 96613 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9415AB71A2 for ; Sat, 21 May 2011 00:38:28 +1000 (EST) Received: (qmail 17404 invoked by alias); 20 May 2011 14:38:26 -0000 Received: (qmail 17340 invoked by uid 22791); 20 May 2011 14:38:24 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 May 2011 14:38:10 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 20 May 2011 07:38:10 -0700 X-ExtLoop1: 1 Received: from gnu-4.sc.intel.com ([10.3.194.56]) by orsmga001.jf.intel.com with ESMTP; 20 May 2011 07:38:10 -0700 Received: by gnu-4.sc.intel.com (Postfix, from userid 500) id 194F0201A3; Fri, 20 May 2011 07:38:10 -0700 (PDT) Date: Fri, 20 May 2011 07:38:10 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [x32] PATCH: Disable gcc.dg/20020219-1.c for x32 Message-ID: <20110520143810.GA21177@lucon.org> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, gcc.dg/20020219-1.c is invalid for x32. I checked in this patch to disable it. H.J. ---- commit 5599f023b65b85b5e5320321e64775910a739ff1 Author: H.J. Lu Date: Fri May 20 06:11:14 2011 -0700 Disable gcc.dg/20020219-1.c for x32. diff --git a/gcc/testsuite/ChangeLog.x32 b/gcc/testsuite/ChangeLog.x32 index 11cca91..5c4728b 100644 --- a/gcc/testsuite/ChangeLog.x32 +++ b/gcc/testsuite/ChangeLog.x32 @@ -1,3 +1,8 @@ +2011-05-20 H.J. Lu + + PR target/48529 + * gcc.dg/20020219-1.c: Disabled for x32. + 2011-04-16 H.J. Lu * gcc.target/i386/avx-vinsertps-3.c: Require ia32 instead of diff --git a/gcc/testsuite/gcc.dg/20020219-1.c b/gcc/testsuite/gcc.dg/20020219-1.c index 3664949..f945072 100644 --- a/gcc/testsuite/gcc.dg/20020219-1.c +++ b/gcc/testsuite/gcc.dg/20020219-1.c @@ -8,14 +8,15 @@ IA64 hpux in ILP32 mode because extending x - 1 before adding the array offset gives a different answer then adding first and then extending. The underlying problem is the same as with hppa, x - 1 is - not a legal data address. */ + not a legal data address. It also fails on x32 targets for the + same reason. */ /* { dg-do run } */ /* { dg-options "-O2" } */ /* { dg-options "-O2 -mdisable-indexing" { target hppa*-*-hpux* } } */ /* { dg-skip-if "" { "ia64-*-hpux*" } "*" "-mlp64" } */ -/* Disable the test entirely for 16-bit targets. */ -#if __INT_MAX__ > 32767 +/* Disable the test entirely for 16-bit and x32 targets. */ +#if __INT_MAX__ > 32767 && (!defined __x86_64__ || defined __LP64__) extern void abort (void); extern void exit (int);