From patchwork Mon Nov 21 15:07:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 126811 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 4C6D8B700E for ; Tue, 22 Nov 2011 02:07:46 +1100 (EST) Received: (qmail 822 invoked by alias); 21 Nov 2011 15:07:43 -0000 Received: (qmail 808 invoked by uid 22791); 21 Nov 2011 15:07:42 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Nov 2011 15:07:09 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id CE2792A8; Mon, 21 Nov 2011 16:07:07 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oZo37Z6S91Hq; Mon, 21 Nov 2011 16:07:06 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id E18842A7; Mon, 21 Nov 2011 16:07:05 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id pALF74Ns015210; Mon, 21 Nov 2011 16:07:04 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: "David S. Miller" , Eric Botcazou Subject: [testsuite] Fix ultrasparc_vis[23]_hw tests Date: Mon, 21 Nov 2011 16:07:04 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes 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 The new gcc.target/sparc/vec-init-[1-3]-vis3.c tests might fail on Solaris 10 and 11 with Sun as on non-VIS3 capable hardware (e.g. UltraSPARC T2 or UltraSPARC IV) like this: ld.so.1: vec-init-1-vis3.exe: fatal: vec-init-1-vis3.exe: hardware capability (C A_SUNW_HW_1) unsupported: 0x400 [ VIS3 ] FAIL: gcc.target/sparc/vec-init-1-vis3.c execution test This shouldn't happen, the tests should appear as UNSUPPORTED instead. I could trace this to the ultrasparc*_hw effective-target tests, which all use the ultrasparc_hw keyword, so checking the wrong test. By fixing this, the test correctly appear as UNSUPPORTED in an sparc-sun-solaris2.11 bootstrap. Installed on mainline. Rainer 2011-11-20 Rainer Orth * lib/target-supports.exp (check_effective_target_ultrasparc_vis2_hw): Call check_runtime with ultrasparc_vis2_hw. (check_effective_target_ultrasparc_vis3_hw): Call check_runtime with ultrasparc_vis3_hw. # HG changeset patch # Parent cbea07084d66f62d8e3d9405e9f5ca17d56ef97b Fix ultrasparc_vis[23]_hw tests diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2476,7 +2476,7 @@ proc check_effective_target_ultrasparc_h # instructions. We check this by attempting: "bmask %g0, %g0, %g0" proc check_effective_target_ultrasparc_vis2_hw { } { - return [check_runtime ultrasparc_hw { + return [check_runtime ultrasparc_vis2_hw { int main() { __asm__(".word 0x81b00320"); return 0; } } "-mcpu=ultrasparc3"] } @@ -2485,7 +2485,7 @@ proc check_effective_target_ultrasparc_v # instructions. We check this by attempting: "addxc %g0, %g0, %g0" proc check_effective_target_ultrasparc_vis3_hw { } { - return [check_runtime ultrasparc_hw { + return [check_runtime ultrasparc_vis3_hw { int main() { __asm__(".word 0x81b00220"); return 0; } } "-mcpu=niagara3"] }