From patchwork Tue Nov 25 03:11:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 414208 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 36078140187 for ; Tue, 25 Nov 2014 14:12:07 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=hDbt46GHCQUw usxXMxl9ICLUpo1PpyWej52O0Hl+Digm8/fg054uqxgo4osO1GyZstqx5JjJ0nhn bvJKvBJIlGvQZzo2BrM/0cHS0yHOMP+i+3TXvNKrt99MKgSbAcazIYLbUeC/jNZi 9G8R5t2pS2Sg9GZUsk94eNv5iiPubbQ= 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 :to:cc:subject:date:message-id; s=default; bh=pgFvwaTt5AucmsJoD6 VV3+X/J/o=; b=GuBZlRiHi1FTARoaCTKlczuRBJhZ+6C660ab/EUbU5GdKp8a0L dM7ugLgYpOGmtbDkTwgpo4t7C4e4eoftzDRQERaG8dKNFtSo3xbPkr6gyZO5rxYm 77XvmwuRDEK6CuxlNiomFez27tmeU+ustkUZGjwxrS1DfWNgjpFP7oqPg= Received: (qmail 11145 invoked by alias); 25 Nov 2014 03:11:58 -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 11134 invoked by uid 89); 25 Nov 2014 03:11:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 25 Nov 2014 03:11:55 +0000 Received: from gcc1-power7.osuosl.org (localhost [127.0.0.1]) by gcc1-power7.osuosl.org (8.14.6/8.14.6) with ESMTP id sAP3BreR055466; Mon, 24 Nov 2014 19:11:53 -0800 Received: (from segher@localhost) by gcc1-power7.osuosl.org (8.14.6/8.14.6/Submit) id sAP3BpQF054900; Mon, 24 Nov 2014 19:11:51 -0800 From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH] rs6000: Remove iorxor/IORXOR code attrs Date: Mon, 24 Nov 2014 19:11:41 -0800 Message-Id: X-IsSubscribed: yes As Richard pointed out, those do nothing more than code/CODE. Tested etc.; okay for trunk? Segher 2014-11-21 Segher Boessenkool gcc/ * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs. (rest of file): Replace those with code resp. CODE. --- gcc/config/rs6000/rs6000.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index fe73acf..c8c3a68 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -460,8 +460,6 @@ (define_code_attr return_str [(return "") (simple_return "simple_")]) ; Logical operators. (define_code_iterator iorxor [ior xor]) -(define_code_attr iorxor [(ior "ior") (xor "xor")]) -(define_code_attr IORXOR [(ior "IOR") (xor "XOR")]) ; Signed/unsigned variants of ops. (define_code_iterator any_extend [sign_extend zero_extend]) @@ -2876,7 +2874,7 @@ (define_insn_and_split "*andsi3_internal6" [(set_attr "length" "8")]) -(define_expand "3" +(define_expand "3" [(set (match_operand:SDI 0 "gpc_reg_operand" "") (iorxor:SDI (match_operand:SDI 1 "gpc_reg_operand" "") (match_operand:SDI 2 "reg_or_cint_operand" "")))] @@ -2884,7 +2882,7 @@ (define_expand "3" { if (mode == DImode && !TARGET_POWERPC64) { - rs6000_split_logical (operands, , false, false, false); + rs6000_split_logical (operands, , false, false, false); DONE; } @@ -2898,8 +2896,8 @@ (define_expand "3" HOST_WIDE_INT lo = value & 0xffff; HOST_WIDE_INT hi = value - lo; - emit_insn (gen_3 (tmp, operands[1], GEN_INT (hi))); - emit_insn (gen_3 (operands[0], tmp, GEN_INT (lo))); + emit_insn (gen_3 (tmp, operands[1], GEN_INT (hi))); + emit_insn (gen_3 (operands[0], tmp, GEN_INT (lo))); DONE; }