From patchwork Mon Dec 10 17:11:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 204990 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 2A4222C032B for ; Tue, 11 Dec 2012 04:11:43 +1100 (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=1355764304; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:Date:To:Subject:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-ID:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=dI7n+oa/K5zIFMA0nO7/BMVJPZM=; b=nd31AXZTjDeqQccRaYj+ulxQlYo82glUrv7S+PxJUZOeZ7sbOQNmPFTuUnUJUj nBi6e1d4pjmVCmIhemmOAn0Z1vBOmWiVErarseJnXfmNLAC2ICbHXQ6t+0vljkYu 7BBeu9wAglbBJYNlhAPVYW95JIIclglJfCyNpv1Xg27iE= 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:X-M-MSG:Received:Received:Received:From:Date:To:Subject:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:X-EMS-Proccessed:X-EMS-STAMP:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=D8jYOu1Vu5wTdiUuaKJqZ+G7lEI6IeUSIXtHTm1yUW0jCAJZqy92FCywDLNbBU JIkFnB3l+Gi3GD1E9QpFnJRyt90mK1+akc3EyVINcG/MoUKw7TkwMVBbjZml79te sQkjqHKnrYCsJRoiEdhATOHesfVUlRoRrn8AUauwe9jwY=; Received: (qmail 20479 invoked by alias); 10 Dec 2012 17:11:29 -0000 Received: (qmail 20363 invoked by uid 22791); 10 Dec 2012 17:11:27 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from dns1.mips.com (HELO dns1.mips.com) (12.201.5.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 17:11:21 +0000 Received: from mailgate1.mips.com (mailgate1.mips.com [12.201.5.111]) by dns1.mips.com (8.13.8/8.13.8) with ESMTP id qBAHBKUO020577 for ; Mon, 10 Dec 2012 09:11:20 -0800 X-M-MSG: Received: from exchdb01.mips.com (unknown [192.168.36.84]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mailgate1.mips.com (Postfix) with ESMTP id 2E12536465B for ; Mon, 10 Dec 2012 09:11:19 -0800 (PST) Received: from ubuntu-sellcey.mips.com (192.168.65.53) by exchhub01.mips.com (192.168.36.84) with Microsoft SMTP Server id 14.1.270.1; Mon, 10 Dec 2012 09:11:17 -0800 Received: by ubuntu-sellcey.mips.com (sSMTP sendmail emulation); Mon, 10 Dec 2012 09:11:17 -0800 From: "Steve Ellcey " Date: Mon, 10 Dec 2012 09:11:17 -0800 To: Subject: [patch, mips, testsuite] Fix scan on gcc.target/mips/ext-2.c User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Message-ID: <487cd252-3f6e-41d1-b313-ac9dbe928370@EXCHHUB01.MIPS.com> X-EMS-Proccessed: 6LP3oGfGVdcdb8o1aBnt6w== X-EMS-STAMP: /GqhfjY8kcPvk5BFkrPP1w== 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 In looking at the failure of gcc.target/mips/ext-2.c, it looks like the GCC compiler is now figuring out that it can use a 32 bit ext instruction instead of a 64 bit dext instruction and that this is why the test fails. Here is a patch to look for 'ext' or 'dext', OK to checkin? It fixes the failure for me and I see no reason why GCC should not use the ext instruction instead of dext in this case. Steve Ellcey sellcey@mips.com 2012-12-10 Steve Ellcey * gcc.target/mips/ext-2.c: Scan for ext or dext. diff --git a/gcc/testsuite/gcc.target/mips/ext-2.c b/gcc/testsuite/gcc.target/mips/ext-2.c index 5d68bc5..6063d3b 100644 --- a/gcc/testsuite/gcc.target/mips/ext-2.c +++ b/gcc/testsuite/gcc.target/mips/ext-2.c @@ -4,7 +4,7 @@ /* { dg-do compile } */ /* { dg-options "isa_rev>=2 -mgp64" } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ -/* { dg-final { scan-assembler "\tdext\t" } } */ +/* { dg-final { scan-assembler "\t(dext|ext)\t" } } */ /* { dg-final { scan-assembler-not "\tand" } } */ /* { dg-final { scan-assembler-not "\td?srl" } } */