From patchwork Tue Apr 8 20:48:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 337735 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 013C9140094 for ; Wed, 9 Apr 2014 06:48:38 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:subject:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=r40dI wkJHTSKqvoM3QBHcn7t8Mavef9nytIICueoooC4HxXTtcbUk02V5JeZs0mCh/6e6 wVV65g5hMHkQ5N8WaUk/9vjIUk0dScN8shfrhBvSP4WVsIlStCLGoFyPJJfdfjnm CaxCTJ9sIRmY4mj/vwaDTRAezQOsy42hMSvBJU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:subject:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=PtCAWgUU2rx 6Vk/qKMQy4YbFhKM=; b=g1O11l1ORyfbZgHFYeaSIRp7n2Q3FgOESTR8OsF4N1v DSURR0sL8zJoOUzAt7Mtq01AJ3SJ8BSYDqZy2obmY4RqbHHjFA6QNDrmQ4i3QzsE OHTyQew2CeHNFsIAKpe3kUDanaxZo+GLY1DUuQ2Rfoogr9RoemN3W5UD0+E3nD14 = Received: (qmail 11944 invoked by alias); 8 Apr 2014 20:48:31 -0000 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 Received: (qmail 11932 invoked by uid 89); 8 Apr 2014 20:48:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.89.28.114) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Apr 2014 20:48:28 +0000 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 872DCA92F7239; Tue, 8 Apr 2014 21:48:21 +0100 (IST) Received: from BAMAIL02.ba.imgtec.org (192.168.66.28) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.181.6; Tue, 8 Apr 2014 21:48:25 +0100 Received: from ubuntu-sellcey.mips.com (192.168.65.53) by bamail02.ba.imgtec.org (192.168.66.28) with Microsoft SMTP Server id 14.3.174.1; Tue, 8 Apr 2014 13:48:21 -0700 Received: by ubuntu-sellcey.mips.com (sSMTP sendmail emulation); Tue, 08 Apr 2014 13:48:21 -0700 From: "Steve Ellcey " Date: Tue, 8 Apr 2014 13:48:21 -0700 To: , , Subject: [Patch, testsuite, mips] Fix gcc.dg/tree-ssa/ssa-ifcombine-13.c User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Message-ID: <32e0d861-7b42-4e83-89f5-bb2a4aa5b435@BAMAIL02.ba.imgtec.org> The test gcc.dg/tree-ssa/ssa-ifcombine-13.c has been failing on MIPS ever since it was added because MIPS sets LOGICAL_OP_NON_SHORT_CIRCUIT to 0 and so the optimization being checked for is not done. This patch removes mips from the list of platforms where we check for the optimization. Tested on mips-mti-elf. OK for checkin? Steve Ellcey sellcey@mips.com 2014-04-01 Steve Ellcey * gcc.dg/tree-ssa/ssa-ifcombine-13.c: Remove mips*-*-* from option and scan lists. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c index 19f892e..43b92c1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ -/* { dg-additional-options "-mbranch-cost=2" { target { i?86-*-* x86_64-*-* mips*-*-* s390*-*-* avr*-*-* } } } */ +/* { dg-additional-options "-mbranch-cost=2" { target { i?86-*-* x86_64-*-* s390*-*-* avr*-*-* } } } */ _Bool f1(_Bool a, _Bool b) { @@ -17,5 +17,5 @@ _Bool f1(_Bool a, _Bool b) /* For LOGICAL_OP_NON_SHORT_CIRCUIT, this should be optimized into return a & b;, with no ifs. */ -/* { dg-final { scan-tree-dump-not "if" "optimized" { target { i?86-*-* x86_64-*-* mips*-*-* s390*-*-* avr*-*-* } } } } */ +/* { dg-final { scan-tree-dump-not "if" "optimized" { target { i?86-*-* x86_64-*-* s390*-*-* avr*-*-* } } } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */