From patchwork Mon Apr 9 09:21:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 151426 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 8E19FB703B for ; Mon, 9 Apr 2012 19:24:49 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1334568290; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:User-Agent:MIME-Version: Content-Type:Message-Id:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=UPtR7RKE/+WBt9e3IWjsi8g1gEw=; b=DGdifIUwtmXXCrt m12uzKnuJ92RxOISpoLbJkwZORSCQ0GrKDqcQY9vbYpiBWxvUW0Epe8LZq4PRegx vKvcmGX57uLy6MrUpUXBdxAolYinQRL5VscLFf3lsNM8NEIsUePixLQAReGFgeR8 8ffgZ5xJUu6KAeulPgOUMOfbIJBg= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Message-Id:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=MiQt6L/91EnT5IMuxsAEAdHyyOOQ0pWvc3/sZnsGyKfGaO9MAlVBMPEpWRlDxT IEPR+uofXEpGuJjI4/GdDiRsSxPanT9wBPcRpRFgJTpWLzQ6i29AYSjsUYxxFdyu wz0jhUD2qLF3qCWwdoXe9sm/Kv0/GO5Bi8pmSJODlJpMo=; Received: (qmail 22124 invoked by alias); 9 Apr 2012 09:24:45 -0000 Received: (qmail 22113 invoked by uid 22791); 9 Apr 2012 09:24:41 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Apr 2012 09:24:29 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 9D982290022 for ; Mon, 9 Apr 2012 11:24:33 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16GA7uxX4GCu for ; Mon, 9 Apr 2012 11:24:33 +0200 (CEST) Received: from [192.168.1.2] (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 65AB9290008 for ; Mon, 9 Apr 2012 11:24:33 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Adjust testsuite parameterization Date: Mon, 9 Apr 2012 11:21:02 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201204091121.03099.ebotcazou@adacore.com> 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 This both eliminates bogus failures in the testsuite on SPARC64/Linux when you configure --with-cpu=v8 and enables more tests on SPARC/Solaris (which is by default configured --with-cpu=v9). Tested on SPARC64/Linux and SPARC/Solaris, applied on mainline and 4.7 branch. 2012-04-09 Eric Botcazou * lib/target-supports.exp (check_effective_target_sparc_v9): New. (check_effective_target_sync_long_long): Add SPARC case. (check_effective_target_sync_long_long_runtime): Likewise. (check_effective_target_sync_int_long): Adjust SPARC case. (check_effective_target_sync_char_short): Likewise. Index: lib/target-supports.exp =================================================================== --- lib/target-supports.exp (revision 186176) +++ lib/target-supports.exp (working copy) @@ -2551,7 +2551,22 @@ proc check_effective_target_ultrasparc_v } "-mcpu=niagara3"] } -# Return 1 if this is a Sparc target with VIS enabled. +# Return 1 if this is a SPARC-V9 target. + +proc check_effective_target_sparc_v9 { } { + if { [istarget sparc*-*-*] } { + return [check_no_compiler_messages sparc_v9 object { + int main (void) { + asm volatile ("return %i7+8"); + return 0; + } + }] + } else { + return 0 + } +} + +# Return 1 if this is a SPARC target with VIS enabled. proc check_effective_target_sparc_vis { } { if { [istarget sparc*-*-*] } { @@ -3730,7 +3745,8 @@ proc check_effective_target_sync_long_lo if { [istarget x86_64-*-*] || [istarget i?86-*-*]) || [istarget arm*-*-*] - || [istarget alpha*-*-*] } { + || [istarget alpha*-*-*] + || ([istarget sparc*-*-*] && [check_effective_target_lp64]) } { return 1 } else { return 0 @@ -3775,6 +3791,10 @@ proc check_effective_target_sync_long_lo } "" ] } elseif { [istarget alpha*-*-*] } { return 1 + } elseif { ([istarget sparc*-*-*] + && [check_effective_target_lp64] + && [check_effective_target_ultrasparc_hw]) } { + return 1 } else { return 0 } @@ -3800,8 +3820,7 @@ proc check_effective_target_sync_int_lon || [istarget hppa*-*linux*] || [istarget s390*-*-*] || [istarget powerpc*-*-*] - || [istarget sparc64-*-*] - || [istarget sparcv9-*-*] + || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9]) || [check_effective_target_mips_llsc] } { set et_sync_int_long_saved 1 } @@ -3830,8 +3849,7 @@ proc check_effective_target_sync_char_sh || [istarget hppa*-*linux*] || [istarget s390*-*-*] || [istarget powerpc*-*-*] - || [istarget sparc64-*-*] - || [istarget sparcv9-*-*] + || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9]) || [check_effective_target_mips_llsc] } { set et_sync_char_short_saved 1 }