From patchwork Tue Oct 12 21:30:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 67618 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 51F7AB6EF0 for ; Wed, 13 Oct 2010 08:31:16 +1100 (EST) Received: (qmail 423 invoked by alias); 12 Oct 2010 21:31:13 -0000 Received: (qmail 32582 invoked by uid 22791); 12 Oct 2010 21:31:12 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Oct 2010 21:31:06 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 415B1CB0271 for ; Tue, 12 Oct 2010 23:31:04 +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 FRjfcrki-dfO for ; Tue, 12 Oct 2010 23:31:04 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 1A7E0CB024E for ; Tue, 12 Oct 2010 23:31:04 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Minor tweaks Date: Tue, 12 Oct 2010 23:30:20 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201010122330.20532.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 Bootstrapped/regtested on SPARC/Solaris 8, applied on the mainline. 2010-10-12 Eric Botcazou * config/sparc/sparc.md (*adddi3_insn_sp32): Rename. (*adddi3_extend_sp32): Likewise. (*subdi3_insn_sp32): Likewise. (*subdi3_extend_sp32): Likewise. (*negdi2_sp32): Use negative test for consistency. Index: config/sparc/sparc.md =================================================================== --- config/sparc/sparc.md (revision 165234) +++ config/sparc/sparc.md (working copy) @@ -3507,7 +3507,7 @@ (define_expand "adddi3" } }) -(define_insn_and_split "adddi3_insn_sp32" +(define_insn_and_split "*adddi3_insn_sp32" [(set (match_operand:DI 0 "register_operand" "=r") (plus:DI (match_operand:DI 1 "arith_double_operand" "%r") (match_operand:DI 2 "arith_double_operand" "rHI"))) @@ -3580,7 +3580,7 @@ (define_insn "*addx_extend_sp64" "addx\t%r1, %2, %0" [(set_attr "type" "ialuX")]) -(define_insn_and_split "" +(define_insn_and_split "*adddi3_extend_sp32" [(set (match_operand:DI 0 "register_operand" "=r") (plus:DI (zero_extend:DI (match_operand:SI 1 "register_operand" "r")) (match_operand:DI 2 "register_operand" "r"))) @@ -3680,7 +3680,7 @@ (define_expand "subdi3" } }) -(define_insn_and_split "subdi3_insn_sp32" +(define_insn_and_split "*subdi3_insn_sp32" [(set (match_operand:DI 0 "register_operand" "=r") (minus:DI (match_operand:DI 1 "register_operand" "r") (match_operand:DI 2 "arith_double_operand" "rHI"))) @@ -3752,7 +3752,7 @@ (define_insn_and_split "*subx_extend" operands[4] = gen_highpart (SImode, operands[0]);" [(set_attr "length" "2")]) -(define_insn_and_split "" +(define_insn_and_split "*subdi3_extend_sp32" [(set (match_operand:DI 0 "register_operand" "=r") (minus:DI (match_operand:DI 1 "register_operand" "r") (zero_extend:DI (match_operand:SI 2 "register_operand" "r")))) @@ -5064,7 +5064,7 @@ (define_insn_and_split "*negdi2_sp32" [(set (match_operand:DI 0 "register_operand" "=r") (neg:DI (match_operand:DI 1 "register_operand" "r"))) (clobber (reg:CC 100))] - "TARGET_ARCH32" + "! TARGET_ARCH64" "#" "&& reload_completed" [(parallel [(set (reg:CC_NOOV 100)