From patchwork Tue Oct 24 12:50:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 1854347 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=K2XpJcXZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SFBk44r0lz23jl for ; Tue, 24 Oct 2023 23:50:36 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B188C3858288 for ; Tue, 24 Oct 2023 12:50:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id EF2183858296 for ; Tue, 24 Oct 2023 12:50:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EF2183858296 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EF2183858296 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698151824; cv=none; b=OEFqhAViU5gAlsKjpZL28OIc/VzroNB/sNHUz+zXj8bGGKJMVjv9HHeMF15A0Pe42arIdjBn22/ru5lz4slUPCmedqE982ZATxLku9crxhWcQPk1wQqj4ouUXNmOr/IhRTeXSIHudLzwljcFvJ9Q3DbhnY6xvxzq4a1hqTnbGys= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698151824; c=relaxed/simple; bh=bgdJX5qN0x3xzxsNEzM3/HITYvoeGffpCtKKPDUHS8s=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=opTMJqYZcnkQiYJCk+aYg7SYRMtABKnTPsnFdoDXpcWtoHi3L3qTHnNZ2dEHO1RfvBVjuLcB9Xa06dDzbOIGjyzdgLZ3ep6jnwlE7pkpP67Az/p9Z/Q8gWB4XutBKolGLFp05zHI7oB8Mqnmx0VRVM5bP71dN0SAtTyQMQXTg2Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9b96c3b4be4so646541066b.1 for ; Tue, 24 Oct 2023 05:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698151820; x=1698756620; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=SeLorQpoLHx4eLpRjOb58a7TDAQ4SAKZwF9UMazll7s=; b=K2XpJcXZY/pBvhQCP6doMHUmYDD+TJhhOy75/FSr2dz6Ebq1aoUvI1jUpFL6CIpb6Q /UHTSpVQSukVsihCRXl1Eb1/zdm5EzUKpRTa4p+6uasTdLweghcQwU1vqwy7pu9MyXmB 89bL8FM8zTk5/PKopOeML6tkCS01xmY+bQq9M+ShJhcssyMcMkbvvQ44kJxz0jlLpxA/ DNEDQguqbK2PB+jrXoHYeuNpmYKk0pNpt49WPehYIeGv/kp1rchCjWnYBWvTRfXqlVo9 QK/wlj1I7eStWeixAdwU9Umb1Ef0NVU3mnMnaWjyU630i/05RbCSuuflj1OHkvhmWW4M 5PrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698151820; x=1698756620; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SeLorQpoLHx4eLpRjOb58a7TDAQ4SAKZwF9UMazll7s=; b=vszFd04SI5giIjzl/f3oTJdK8fVQQSt0OPsIIDjljyEszTXHaq8Nw0i2FQJseaFHYu 4W+v9H+HifM5bQIjGHeyh1ao8H2FfoNAkmrRRouZkPBqGHAa4QbHU7pRhkETykV9xEd9 SUVN5mXoNIvF0S1wnHy0dsBeOnEOaiDRwIB/CMcFfzAiOVZlOnLtwCMzWmdl0AcNyk6w 7IXgz3XgOafZT4c0povsIBJMsyfm5A71nqswgD73UwFuzVH/dljvjjhExmKRrWbJfF82 yq/gkDmWXx/zB/TIekjgv+MRGUSSh+LUksxk5KBYAfUbUXTgc6+eFfVOv+9QgY0ywLH2 FEeQ== X-Gm-Message-State: AOJu0YxJUrgzd/gvIr+SeGLbVbvXCHkrLhqgZQDtqyC9RxD6Q+9w4iEZ FUxnZ9JDL1og29uw2SdIsOJjmxjfe126zQ== X-Google-Smtp-Source: AGHT+IE6dZiwhMBl64vAfEfsQ8YDZOZ69Ht5DBVp0RzeQv/h1woWqV4GxiS00C5Q5MM6jxid8XTV5w== X-Received: by 2002:a17:907:25c4:b0:9c1:bee1:b7eb with SMTP id ae4-20020a17090725c400b009c1bee1b7ebmr9800958ejc.37.1698151820063; Tue, 24 Oct 2023 05:50:20 -0700 (PDT) Received: from fatty.nomansland ([193.187.151.25]) by smtp.gmail.com with ESMTPSA id m10-20020a170906234a00b009b29668fce7sm8188017eja.113.2023.10.24.05.50.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:50:19 -0700 (PDT) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Subject: [committed] arc: Remove mpy_dest_reg_operand predicate Date: Tue, 24 Oct 2023 15:50:17 +0300 Message-Id: <20231024125017.3708206-1-claziss@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org The mpy_dest_reg_operand is just a wrapper for register_operand. Remove it. gcc/ * config/arc/arc.md (mulsi3_700): Update pattern. (mulsi3_v2): Likewise. * config/arc/predicates.md (mpy_dest_reg_operand): Remove it. Signed-off-by: Claudiu Zissulescu --- gcc/config/arc/arc.md | 6 +++--- gcc/config/arc/predicates.md | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index 22af0bf47dd..325e4f56b9b 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -2293,7 +2293,7 @@ (define_insn "mulu64" ; registers, since it cannot be the destination of a multi-cycle insn ; like MPY or MPYU. (define_insn "mulsi3_700" - [(set (match_operand:SI 0 "mpy_dest_reg_operand" "=r, r,r, r,r") + [(set (match_operand:SI 0 "register_operand" "=r, r,r, r,r") (mult:SI (match_operand:SI 1 "register_operand" "%0, r,0, 0,r") (match_operand:SI 2 "nonmemory_operand" "rL,rL,I,Cal,Cal")))] "TARGET_ARC700_MPY" @@ -2306,8 +2306,8 @@ (define_insn "mulsi3_700" ; ARCv2 has no penalties between mpy and mpyu. So, we use mpy because of its ; short variant. LP_COUNT constraints are still valid. (define_insn "mulsi3_v2" - [(set (match_operand:SI 0 "mpy_dest_reg_operand" "=q,q, r, r,r, r, r") - (mult:SI (match_operand:SI 1 "register_operand" "%0,q, 0, r,0, 0, c") + [(set (match_operand:SI 0 "register_operand" "=q,q, r, r,r, r, r") + (mult:SI (match_operand:SI 1 "register_operand" "%0,q, 0, r,0, 0, r") (match_operand:SI 2 "nonmemory_operand" "q,0,rL,rL,I,Cal,Cal")))] "TARGET_MULTI" "@ diff --git a/gcc/config/arc/predicates.md b/gcc/config/arc/predicates.md index e37d8844979..e0aef86fd24 100644 --- a/gcc/config/arc/predicates.md +++ b/gcc/config/arc/predicates.md @@ -23,13 +23,6 @@ (define_predicate "dest_reg_operand" return register_operand (op, mode); }) -(define_predicate "mpy_dest_reg_operand" - (match_code "reg,subreg") -{ - return register_operand (op, mode); -}) - - ;; Returns 1 if OP is a symbol reference. (define_predicate "symbolic_operand" (match_code "symbol_ref, label_ref, const")