From patchwork Thu Aug 8 06:47:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lulu Cheng X-Patchwork-Id: 1970383 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wfd16389qz1yfC for ; Thu, 8 Aug 2024 16:48:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 724813858433 for ; Thu, 8 Aug 2024 06:48:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 12F343858410 for ; Thu, 8 Aug 2024 06:48:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12F343858410 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 12F343858410 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723099694; cv=none; b=X7LK6B381WSM5F5AOQTX9Mpnqmn3r0wLHvV2opyimiFwDgevkcIvx1d62qWUQvVenubAtkNBG8Wjk8Kq1JguUyc8bS6OZDXW5BXdfztemK4u24NWCnA4a+PEuLyFtLXuB54mXPmBaRj26NxS7/ALdHxVoUz1cnKgTEli6NAV0R4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723099694; c=relaxed/simple; bh=43aZXRn5WkH1xmG2UB7mrUIxOA7TQ/Yxv8cj9KUB0YQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=EODMKcq2FbUXfloRt+Xzbu8PJwxVJY/DW1SLQc+EaZSP7AQGs4YNcEzk37Y8snsyTxmL7d2gbtYZCNSNuYygSP6DuT/4EUif2s0/1mhUdVNf24RMfX8h5In3ZnfkYvqD9ChFrdbL1EA5k83Fg/FvBEkXvN25q6Vf4IXFzQTp1h0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8Dxh+kjarRmsHwLAA--.33258S3; Thu, 08 Aug 2024 14:48:04 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by front1 (Coremail) with SMTP id qMiowMCxwuEgarRmv1EJAA--.46725S2; Thu, 08 Aug 2024 14:48:01 +0800 (CST) From: Lulu Cheng To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn Subject: [PATCH v1 1/2] LoongArch: Drop vcond{,u} expanders. Date: Thu, 8 Aug 2024 14:47:47 +0800 Message-Id: <20240808064747.9012-1-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: qMiowMCxwuEgarRmv1EJAA--.46725S2 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoWxXFWkZr15Xw45AFWDJF1UJwc_yoWrZr18pr W3W34xCr48JrWkK3WxJFWUZw4UKrWxJF42vFW3XrZakwnruw1UXwsYyr92qFyDA3yavr17 XF4Iy3WjqayUGrXCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07UNvtZUUUUU= X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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 Optabs vcond{,u} will be removed for GCC 15. Since regtest shows no fallout, dropping the expanders, now. gcc/ChangeLog: PR target/114189 * config/loongarch/lasx.md (vcondu): Delete. (vcond): Likewise. * config/loongarch/lsx.md (vcondu): Likewise. (vcond): Likewise. --- gcc/config/loongarch/lasx.md | 37 ------------------------------------ gcc/config/loongarch/lsx.md | 31 ------------------------------ 2 files changed, 68 deletions(-) diff --git a/gcc/config/loongarch/lasx.md b/gcc/config/loongarch/lasx.md index 7bd61f8ed5b..4087c4b5349 100644 --- a/gcc/config/loongarch/lasx.md +++ b/gcc/config/loongarch/lasx.md @@ -165,9 +165,6 @@ (define_c_enum "unspec" [ ;; All vector modes with 256 bits. (define_mode_iterator LASX [V4DF V8SF V4DI V8SI V16HI V32QI]) -;; Same as LASX. Used by vcond to iterate two modes. -(define_mode_iterator LASX_2 [V4DF V8SF V4DI V8SI V16HI V32QI]) - ;; Only used for splitting insert_d and copy_{u,s}.d. (define_mode_iterator LASX_D [V4DI V4DF]) @@ -762,40 +759,6 @@ (define_expand "vec_perm" DONE; }) -;; FIXME: 256?? -(define_expand "vcondu" - [(match_operand:LASX 0 "register_operand") - (match_operand:LASX 1 "reg_or_m1_operand") - (match_operand:LASX 2 "reg_or_0_operand") - (match_operator 3 "" - [(match_operand:ILASX 4 "register_operand") - (match_operand:ILASX 5 "register_operand")])] - "ISA_HAS_LASX - && (GET_MODE_NUNITS (mode) - == GET_MODE_NUNITS (mode))" -{ - loongarch_expand_vec_cond_expr (mode, mode, - operands); - DONE; -}) - -;; FIXME: 256?? -(define_expand "vcond" - [(match_operand:LASX 0 "register_operand") - (match_operand:LASX 1 "reg_or_m1_operand") - (match_operand:LASX 2 "reg_or_0_operand") - (match_operator 3 "" - [(match_operand:LASX_2 4 "register_operand") - (match_operand:LASX_2 5 "register_operand")])] - "ISA_HAS_LASX - && (GET_MODE_NUNITS (mode) - == GET_MODE_NUNITS (mode))" -{ - loongarch_expand_vec_cond_expr (mode, mode, - operands); - DONE; -}) - ;; Same as vcond_ (define_expand "vcond_mask_" [(match_operand:LASX 0 "register_operand") diff --git a/gcc/config/loongarch/lsx.md b/gcc/config/loongarch/lsx.md index 454cda47876..222a5afe5b2 100644 --- a/gcc/config/loongarch/lsx.md +++ b/gcc/config/loongarch/lsx.md @@ -186,9 +186,6 @@ (define_mode_attr VD2MODE ;; All vector modes with 128 bits. (define_mode_iterator LSX [V2DF V4SF V2DI V4SI V8HI V16QI]) -;; Same as LSX. Used by vcond to iterate two modes. -(define_mode_iterator LSX_2 [V2DF V4SF V2DI V4SI V8HI V16QI]) - ;; Only used for vilvh and splitting insert_d and copy_{u,s}.d. (define_mode_iterator LSX_D [V2DI V2DF]) @@ -533,34 +530,6 @@ (define_expand "vec_cmpu" DONE; }) -(define_expand "vcondu" - [(match_operand:LSX 0 "register_operand") - (match_operand:LSX 1 "reg_or_m1_operand") - (match_operand:LSX 2 "reg_or_0_operand") - (match_operator 3 "" - [(match_operand:ILSX 4 "register_operand") - (match_operand:ILSX 5 "register_operand")])] - "ISA_HAS_LSX - && (GET_MODE_NUNITS (mode) == GET_MODE_NUNITS (mode))" -{ - loongarch_expand_vec_cond_expr (mode, mode, operands); - DONE; -}) - -(define_expand "vcond" - [(match_operand:LSX 0 "register_operand") - (match_operand:LSX 1 "reg_or_m1_operand") - (match_operand:LSX 2 "reg_or_0_operand") - (match_operator 3 "" - [(match_operand:LSX_2 4 "register_operand") - (match_operand:LSX_2 5 "register_operand")])] - "ISA_HAS_LSX - && (GET_MODE_NUNITS (mode) == GET_MODE_NUNITS (mode))" -{ - loongarch_expand_vec_cond_expr (mode, mode, operands); - DONE; -}) - (define_expand "vcond_mask_" [(match_operand:LSX 0 "register_operand") (match_operand:LSX 1 "reg_or_m1_operand")