From patchwork Thu May 25 12:24:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 98995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp326027vqr; Thu, 25 May 2023 05:25:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/YiI1cHTQRliQSHbCdCzlhKB/El9pLhAQzYvP88QtpIfBLhznryAVXp6BuyqNfZmlE7ew X-Received: by 2002:a17:907:9493:b0:965:fa80:bf1 with SMTP id dm19-20020a170907949300b00965fa800bf1mr1303400ejc.32.1685017554213; Thu, 25 May 2023 05:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685017554; cv=none; d=google.com; s=arc-20160816; b=DKvFomaRrRgtNnMzGC6ZZ5JBG7SN+MGiXmGBR6OZ6CzN28rWtrtfhgCkWnu0PnQwek uK+zlvUSLyFpPmhidKUdAWiGRGGb77habSPIN2P0Lqf2suOlx5CSV79mqlzTNOVz+6fz n46zUzRmhi5lGSzJ7bhTyDsf9lrsZjpC7wyqmfXg1p0Pq9FhAqaoiaypR2V0tcTBP5SY 0yl437kggcTNhlc9U92jdrsQje39lRnAs/QjK3ijfW795bHH4eN/uXDtBATazbEDI6EN Occy1XSyI+9gmzfTkZDC9V0JV37l3zfUXJ61yDBrh8jskYPepilpv1idgw97JQFAHbmr qoMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Vw1jyU3d6QE0wVEFHdmJankUSAnm3xFI23vrfn2IcAc=; b=isEVjYWwTTsiEceSn+M8WDtpPlsLdEGb6lqP+DOxa7fSyYMRWr8khIL8Jd5Q9aBTgG FeMYFTn09oUfnBsksojCxoJFjNwyEMMNxyAroRKdpPv6yR1sPbxmamTufiSEc3gIcgUD s0bj1sDD6QceZPkQzPQrZpNDjay1KfsSniUz+WYKYCAM2/0HFTuxRwFPAtcXsQCrVsqP motFBNFOp/z8dcx4FWLeLTzxWKK7fssTG8eMYc7mm8XSZT3Oh/glN0MMMCbv0ibdnm4x W/1W45UUWP4/CmxxSAIbUjX+nmC4nBYywVJ1l0Xd3dKdGjfkeKXVJw9gFXhgQqX4Kx0i Rg+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GoycIzg8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id m21-20020a170906581500b0096f65a319bdsi929559ejq.114.2023.05.25.05.25.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 05:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GoycIzg8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F72A3857728 for ; Thu, 25 May 2023 12:25:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F72A3857728 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685017549; bh=Vw1jyU3d6QE0wVEFHdmJankUSAnm3xFI23vrfn2IcAc=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=GoycIzg8j1EA16RMyxYbwZrxzka2Q/3J5/ZEeuuOHgsKZ0H2y6W2TP6p09F8LRH0l 7m1uF1FyuOJqZJSVoZx/Y3ALT/NxdLTbTXoxoHSAO5A6vqlXPS0kuU42VlzmhJq/mx khbRgCV3DyOWltWW9OK87m8q4pZ+lfU32JYKDuNg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id B40D53858D32 for ; Thu, 25 May 2023 12:25:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B40D53858D32 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6af7e368bb7so597775a34.1 for ; Thu, 25 May 2023 05:25:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685017503; x=1687609503; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Vw1jyU3d6QE0wVEFHdmJankUSAnm3xFI23vrfn2IcAc=; b=J7MM7SI2FXeqw7HdX9LkdcyDGu22lO0DiEqKqOx+ML5sRbnkBSMVxQQeas0yCMIwaU r6jw64L4i2aG3Lhx2sHr5AtSzPRQw35AxCZ3wJyB3zmhjob0ySxNjEXOnOf8LW5wW+lq U7leOVDHskLv+reGvxIjUEmwRR0jTzyppf636yxTjXal36tSA7HvCHp8PZVGPBILZtIq PMWZK9C9JuQKPExApuWSRXUNhkqPYcKr/DYdzBxNdKRXCY+C/2ZofAmnN5A92mINBn8B 3dbcqzoFIfA7hyIwCK8KI1Tfyr40qTEFNjxZGE/V5BwdDn/cBjlgTbcM9hZj+hzec6n+ 58BQ== X-Gm-Message-State: AC+VfDxIwYl5NoLp5QFaMcgX64i2iTe288emyzm+g7XdfVQN/2ftx41n u03ORmz1h+E8q+dsQoJywkozhqU2+Ae19UfeI7jXPw== X-Received: by 2002:a05:6830:4794:b0:69f:8d0f:9a1e with SMTP id df20-20020a056830479400b0069f8d0f9a1emr9584155otb.7.1685017503522; Thu, 25 May 2023 05:25:03 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id t4-20020a9d7484000000b006af8bc70e26sm568798otk.7.2023.05.25.05.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 05:25:03 -0700 (PDT) To: gcc-patches@gcc.gnu.org, Kyrylo.Tkachov@arm.com Cc: Christophe Lyon Subject: [PATCH 1/1] arm: merge MVE_5 and MVE_6 iterators Date: Thu, 25 May 2023 12:24:55 +0000 Message-Id: <20230525122455.521260-1-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766868967144851116?= X-GMAIL-MSGID: =?utf-8?q?1766868967144851116?= MVE_5 and MVE_6 iterators are the same: this patch replaces MVE_6 with MVE_5 everywhere in mve.md and removes MVE_6 from iterators.md. 2023-05-25 Christophe Lyon gcc/ * config/arm/iterators.md (MVE_6): Remove. * config/arm/mve.md: Replace MVE_6 with MVE_5. --- gcc/config/arm/iterators.md | 1 - gcc/config/arm/mve.md | 68 ++++++++++++++++++------------------- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/gcc/config/arm/iterators.md b/gcc/config/arm/iterators.md index 597c1dae640..9e77af55d60 100644 --- a/gcc/config/arm/iterators.md +++ b/gcc/config/arm/iterators.md @@ -272,7 +272,6 @@ (define_mode_iterator MVE_3 [V16QI V8HI]) (define_mode_iterator MVE_2 [V16QI V8HI V4SI]) (define_mode_iterator MVE_5 [V8HI V4SI]) -(define_mode_iterator MVE_6 [V8HI V4SI]) (define_mode_iterator MVE_7 [V16BI V8BI V4BI V2QI]) (define_mode_iterator MVE_7_HI [HI V16BI V8BI V4BI V2QI]) (define_mode_iterator MVE_V8HF [V8HF]) diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md index 9e3570c5264..74909ce47e1 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -3732,9 +3732,9 @@ ;; [vldrhq_gather_offset_s vldrhq_gather_offset_u] ;; (define_insn "mve_vldrhq_gather_offset_" - [(set (match_operand:MVE_6 0 "s_register_operand" "=&w") - (unspec:MVE_6 [(match_operand: 1 "memory_operand" "Us") - (match_operand:MVE_6 2 "s_register_operand" "w")] + [(set (match_operand:MVE_5 0 "s_register_operand" "=&w") + (unspec:MVE_5 [(match_operand: 1 "memory_operand" "Us") + (match_operand:MVE_5 2 "s_register_operand" "w")] VLDRHGOQ)) ] "TARGET_HAVE_MVE" @@ -3755,9 +3755,9 @@ ;; [vldrhq_gather_offset_z_s vldrhq_gather_offset_z_u] ;; (define_insn "mve_vldrhq_gather_offset_z_" - [(set (match_operand:MVE_6 0 "s_register_operand" "=&w") - (unspec:MVE_6 [(match_operand: 1 "memory_operand" "Us") - (match_operand:MVE_6 2 "s_register_operand" "w") + [(set (match_operand:MVE_5 0 "s_register_operand" "=&w") + (unspec:MVE_5 [(match_operand: 1 "memory_operand" "Us") + (match_operand:MVE_5 2 "s_register_operand" "w") (match_operand: 3 "vpr_register_operand" "Up") ]VLDRHGOQ)) ] @@ -3780,9 +3780,9 @@ ;; [vldrhq_gather_shifted_offset_s vldrhq_gather_shifted_offset_u] ;; (define_insn "mve_vldrhq_gather_shifted_offset_" - [(set (match_operand:MVE_6 0 "s_register_operand" "=&w") - (unspec:MVE_6 [(match_operand: 1 "memory_operand" "Us") - (match_operand:MVE_6 2 "s_register_operand" "w")] + [(set (match_operand:MVE_5 0 "s_register_operand" "=&w") + (unspec:MVE_5 [(match_operand: 1 "memory_operand" "Us") + (match_operand:MVE_5 2 "s_register_operand" "w")] VLDRHGSOQ)) ] "TARGET_HAVE_MVE" @@ -3803,9 +3803,9 @@ ;; [vldrhq_gather_shifted_offset_z_s vldrhq_gather_shited_offset_z_u] ;; (define_insn "mve_vldrhq_gather_shifted_offset_z_" - [(set (match_operand:MVE_6 0 "s_register_operand" "=&w") - (unspec:MVE_6 [(match_operand: 1 "memory_operand" "Us") - (match_operand:MVE_6 2 "s_register_operand" "w") + [(set (match_operand:MVE_5 0 "s_register_operand" "=&w") + (unspec:MVE_5 [(match_operand: 1 "memory_operand" "Us") + (match_operand:MVE_5 2 "s_register_operand" "w") (match_operand: 3 "vpr_register_operand" "Up") ]VLDRHGSOQ)) ] @@ -3828,8 +3828,8 @@ ;; [vldrhq_s, vldrhq_u] ;; (define_insn "mve_vldrhq_" - [(set (match_operand:MVE_6 0 "s_register_operand" "=w") - (unspec:MVE_6 [(match_operand: 1 "mve_memory_operand" "Ux")] + [(set (match_operand:MVE_5 0 "s_register_operand" "=w") + (unspec:MVE_5 [(match_operand: 1 "mve_memory_operand" "Ux")] VLDRHQ)) ] "TARGET_HAVE_MVE" @@ -3870,8 +3870,8 @@ ;; [vldrhq_z_s vldrhq_z_u] ;; (define_insn "mve_vldrhq_z_" - [(set (match_operand:MVE_6 0 "s_register_operand" "=w") - (unspec:MVE_6 [(match_operand: 1 "mve_memory_operand" "Ux") + [(set (match_operand:MVE_5 0 "s_register_operand" "=w") + (unspec:MVE_5 [(match_operand: 1 "mve_memory_operand" "Ux") (match_operand: 2 "vpr_register_operand" "Up")] VLDRHQ)) ] @@ -4449,7 +4449,7 @@ (define_insn "mve_vstrhq_p_" [(set (match_operand: 0 "mve_memory_operand" "=Ux") (unspec: - [(match_operand:MVE_6 1 "s_register_operand" "w") + [(match_operand:MVE_5 1 "s_register_operand" "w") (match_operand: 2 "vpr_register_operand" "Up") (match_dup 0)] VSTRHQ)) @@ -4470,8 +4470,8 @@ ;; (define_expand "mve_vstrhq_scatter_offset_p_" [(match_operand: 0 "mve_scatter_memory") - (match_operand:MVE_6 1 "s_register_operand") - (match_operand:MVE_6 2 "s_register_operand") + (match_operand:MVE_5 1 "s_register_operand") + (match_operand:MVE_5 2 "s_register_operand") (match_operand: 3 "vpr_register_operand") (unspec:V4SI [(const_int 0)] VSTRHSOQ)] "TARGET_HAVE_MVE" @@ -4489,8 +4489,8 @@ [(set (mem:BLK (scratch)) (unspec:BLK [(match_operand:SI 0 "register_operand" "r") - (match_operand:MVE_6 1 "s_register_operand" "w") - (match_operand:MVE_6 2 "s_register_operand" "w") + (match_operand:MVE_5 1 "s_register_operand" "w") + (match_operand:MVE_5 2 "s_register_operand" "w") (match_operand: 3 "vpr_register_operand" "Up")] VSTRHSOQ))] "TARGET_HAVE_MVE" @@ -4502,8 +4502,8 @@ ;; (define_expand "mve_vstrhq_scatter_offset_" [(match_operand: 0 "mve_scatter_memory") - (match_operand:MVE_6 1 "s_register_operand") - (match_operand:MVE_6 2 "s_register_operand") + (match_operand:MVE_5 1 "s_register_operand") + (match_operand:MVE_5 2 "s_register_operand") (unspec:V4SI [(const_int 0)] VSTRHSOQ)] "TARGET_HAVE_MVE" { @@ -4518,8 +4518,8 @@ [(set (mem:BLK (scratch)) (unspec:BLK [(match_operand:SI 0 "register_operand" "r") - (match_operand:MVE_6 1 "s_register_operand" "w") - (match_operand:MVE_6 2 "s_register_operand" "w")] + (match_operand:MVE_5 1 "s_register_operand" "w") + (match_operand:MVE_5 2 "s_register_operand" "w")] VSTRHSOQ))] "TARGET_HAVE_MVE" "vstrh.\t%q2, [%0, %q1]" @@ -4530,8 +4530,8 @@ ;; (define_expand "mve_vstrhq_scatter_shifted_offset_p_" [(match_operand: 0 "mve_scatter_memory") - (match_operand:MVE_6 1 "s_register_operand") - (match_operand:MVE_6 2 "s_register_operand") + (match_operand:MVE_5 1 "s_register_operand") + (match_operand:MVE_5 2 "s_register_operand") (match_operand: 3 "vpr_register_operand") (unspec:V4SI [(const_int 0)] VSTRHSSOQ)] "TARGET_HAVE_MVE" @@ -4549,8 +4549,8 @@ [(set (mem:BLK (scratch)) (unspec:BLK [(match_operand:SI 0 "register_operand" "r") - (match_operand:MVE_6 1 "s_register_operand" "w") - (match_operand:MVE_6 2 "s_register_operand" "w") + (match_operand:MVE_5 1 "s_register_operand" "w") + (match_operand:MVE_5 2 "s_register_operand" "w") (match_operand: 3 "vpr_register_operand" "Up")] VSTRHSSOQ))] "TARGET_HAVE_MVE" @@ -4562,8 +4562,8 @@ ;; (define_expand "mve_vstrhq_scatter_shifted_offset_" [(match_operand: 0 "mve_scatter_memory") - (match_operand:MVE_6 1 "s_register_operand") - (match_operand:MVE_6 2 "s_register_operand") + (match_operand:MVE_5 1 "s_register_operand") + (match_operand:MVE_5 2 "s_register_operand") (unspec:V4SI [(const_int 0)] VSTRHSSOQ)] "TARGET_HAVE_MVE" { @@ -4579,8 +4579,8 @@ [(set (mem:BLK (scratch)) (unspec:BLK [(match_operand:SI 0 "register_operand" "r") - (match_operand:MVE_6 1 "s_register_operand" "w") - (match_operand:MVE_6 2 "s_register_operand" "w")] + (match_operand:MVE_5 1 "s_register_operand" "w") + (match_operand:MVE_5 2 "s_register_operand" "w")] VSTRHSSOQ))] "TARGET_HAVE_MVE" "vstrh.\t%q2, [%0, %q1, uxtw #1]" @@ -4591,7 +4591,7 @@ ;; (define_insn "mve_vstrhq_" [(set (match_operand: 0 "mve_memory_operand" "=Ux") - (unspec: [(match_operand:MVE_6 1 "s_register_operand" "w")] + (unspec: [(match_operand:MVE_5 1 "s_register_operand" "w")] VSTRHQ)) ] "TARGET_HAVE_MVE"