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 Ianculescu X-Patchwork-Id: 157407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1915666vqx; Tue, 24 Oct 2023 05:50:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/tSVgt1NfZhHO5BKAYB1TK4vy75y+X7MqT3W/c3hgoKRYisyVnjHqeYr4rZ8uLQRyuA5g X-Received: by 2002:ac8:7c4e:0:b0:41e:1ee3:a538 with SMTP id o14-20020ac87c4e000000b0041e1ee3a538mr6438245qtv.15.1698151846994; Tue, 24 Oct 2023 05:50:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698151846; cv=pass; d=google.com; s=arc-20160816; b=kYqesR+1u+jbhqXfYZKx5vNN8x9nlIHyGPnfnSzOAkhqERJ2VMwPOF08jRvVN4wEGN D9pxWFca7drrEyFu9CwBktQSQhiRCPiGGSjApgSnToZmQ/YqpeZcbXz/5fU/U1Jy/DxK bgyXT4yWzsuwAXlXSwELZyplRMnhWvxmRKh+pdhXzY9QmzzLzi8Vm8qswkCdgh0x7ehM rAh16UHt2VNtX/Mrn5wPelF7Tgur9KZTzFQCy/+RUloG04rN0I8Ukrk7WvdAGIfDcP2X Zt1oCzYctZqLEKBtmi2OjViRIzMU4GsoICJkhMD3Sb3ltUyZBvqjxw73jSXB/GvjZNHH Ra3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=SeLorQpoLHx4eLpRjOb58a7TDAQ4SAKZwF9UMazll7s=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=t/XSz46Jp+tUVcpuM5W/UaQMoZqrwwtQI9sCyugRtU5eCI3oitA74wITL5zkYLt5Iq NtFuzgT1dEW1y6T+qmHlTCALDk1GCysKz4AIqmCoOIthv3hfVD6JBE4QkwMvVk0MzyRp R681ClobsQasKEY3WXBA8Dx0Ji2Hj6sfKWZJMpkEaAcy+kceiyas3iXt2aT36MSWtxXf FVDdrtK5qpGqe+eAXZ4ilaxMt+oSzljmAif9cXUD6c27eOh90sz5OxppJHp9VuK9SNXh P2KG3AThuWiRdvaDTza+3MIcZHOwFfTKwmAkVdE+dFREsaCOVsu1AFW1GRdntWKR/eAO hJTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K2XpJcXZ; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x9-20020ac85f09000000b004181aa26b1esi6988138qta.196.2023.10.24.05.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K2XpJcXZ; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B90243858436 for ; Tue, 24 Oct 2023 12:50:46 +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-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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780641271461391038 X-GMAIL-MSGID: 1780641271461391038 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")