From patchwork Tue Oct 10 12:19:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 150732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp155867vqb; Tue, 10 Oct 2023 05:22:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrfi4fq6ZJD1GoCOzs3A8ibOpl/oNI2bKW0tdwGJAgENDaaGF0ldXTu6OzKD7oFUcmBfhF X-Received: by 2002:a17:906:2cf:b0:9ae:3d6b:9521 with SMTP id 15-20020a17090602cf00b009ae3d6b9521mr15052683ejk.56.1696940570019; Tue, 10 Oct 2023 05:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696940570; cv=none; d=google.com; s=arc-20160816; b=wq683QVQ+5v5npBvDehc8oae6KdAF2wR+q0vBNGZ3tUFncMBZP3UHJiyOyH7iok65d lTwMZVtYnlLiZCZgLjT0kNNttixbr5/Id8r9eAVWw1qVrkKSSi8g1v+hG1fzNZQBC03V m5qjEUrrQma/83plnOZUF6PvyeCzar7KpPIBwg5M164zg627B05WrQKxsyWiyXp+4l1f X3f6I52aNQHDt/e95mDQk35lx+/BjjZV1rZdEGBgaJGOqeaBh+yLkXOB4s5qmxTBqYA5 +6fxssaKmiKHZfPgDHKJTklz9yMjobwLGMvZKAoaeSeWRAUmVP+pZZciKO7v4ghIO2l9 e+iQ== ARC-Message-Signature: i=1; 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:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:delivered-to; bh=O+JZ5jzFlLYudkgsIttMogdCQ253g2ilVh6Sll0tqzU=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=tT413L+ub/t4dRsRhgs6EDCfxb5r7Px+/wn/lr5AIN/70Ld7FxDgPfVDf3dus8D3Cu HdkrtepR3izp12FcIraZxoqnEZ2hastOzQXUVZeC0uhUq5r8LBjw8JqAljrNTB40L4Ta 7b2Z3jcacW5cqIKrQv6eePHoZar9sUERzX0kffAY8sO2C9zBX/DsQSlVFGxITGpDEwX4 FDLCjEdRJ5Z0jeo1UopITcVxe/BuPvCwJnuPdPgCGmIryS1IfAnAso/+o3544jz9hjL0 uFNpXn5PVhCJsvw41JYfW7GtpeMqNK+0owVEurXWQ0qb70glR+v+od9Hc6wlI+oLdpjV JZjA== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i2-20020a1709064ec200b009b287d56019si5318345ejv.734.2023.10.10.05.22.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:22:50 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0ABD23882AC8 for ; Tue, 10 Oct 2023 12:19:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by sourceware.org (Postfix) with ESMTPS id 1515C3858C54 for ; Tue, 10 Oct 2023 12:19:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1515C3858C54 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp88t1696940357tja36skk Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 10 Oct 2023 20:19:15 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: RrZlkntZBfllPFfrBC8rwbE5mVUy1BYZlqsRDSkq95ohxxLsMszk2PWcSiwV7 Q45Wy4+SI8heQW39x/i9PUUBdhbT+ZZWCnqe/XWhfc3AGusjVY2zgLt9hAVHQGpfqjTCfRZ BWgEOGrolCypGXuRl4zV49znwDSpufDqbcDOrxm4qkV6qQoB4ZHpzcJgcLYJiRfp3T1iOm9 j9HAc4XUCcseLew04BTD2v3ZhU08L7EV4ZcyIhij1nVAU9BUhS+Z9dRdhx+xLbVr9jQO4QO iHtm2fUEVv7QQcsvGNpTxjknKQrESm/8SEf7pCwzXYg5dzlDnWagke7NvjxcN3P5kwA2Y6b wLLtUQ3n5Yp8MuHJDkjoZc43IeIEoG0RnWEXns4Zl9HaP/KMGsp47AzKGMIxItFVPly9NoB KCs8gy27AzHwZmr4td30mw== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 17774422353206194964 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [Committed] RISC-V: Add VLS BOOL mode vcond_mask[PR111751] Date: Tue, 10 Oct 2023 20:19:09 +0800 Message-Id: <20231010121909.1803189-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: 1779371154743865882 X-GMAIL-MSGID: 1779371154743865882 Richard patch resolve PR111751: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=7c76c876e917a1f20a788f602cc78fff7d0a2a65 which cause ICE in RISC-V regression: FAIL: gcc.dg/torture/pr53144.c -O2 (internal compiler error: in gimple_expand_vec_cond_expr, at gimple-isel.cc:328) FAIL: gcc.dg/torture/pr53144.c -O2 (test for excess errors) FAIL: gcc.dg/torture/pr53144.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error: in gimple_expand_vec_cond_expr, at gimple-isel.cc:328) FAIL: gcc.dg/torture/pr53144.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) FAIL: gcc.dg/torture/pr53144.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (internal compiler error: in gimple_expand_vec_cond_expr, at gimple-isel.cc:328) FAIL: gcc.dg/torture/pr53144.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) FAIL: gcc.dg/torture/pr53144.c -O3 -g (internal compiler error: in gimple_expand_vec_cond_expr, at gimple-isel.cc:328) FAIL: gcc.dg/torture/pr53144.c -O3 -g (test for excess errors) VLS BOOL modes vcond_mask is needed to fix this regression ICE. More details: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111751 Tested and Committed. gcc/ChangeLog: * config/riscv/autovec.md: Add VLS BOOL modes. --- gcc/config/riscv/autovec.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/riscv/autovec.md b/gcc/config/riscv/autovec.md index 53e9d34eea1..41bff3a318f 100644 --- a/gcc/config/riscv/autovec.md +++ b/gcc/config/riscv/autovec.md @@ -575,10 +575,10 @@ ;; ------------------------------------------------------------------------- (define_expand "vcond_mask_" - [(match_operand:VB 0 "register_operand") - (match_operand:VB 1 "register_operand") - (match_operand:VB 2 "register_operand") - (match_operand:VB 3 "register_operand")] + [(match_operand:VB_VLS 0 "register_operand") + (match_operand:VB_VLS 1 "register_operand") + (match_operand:VB_VLS 2 "register_operand") + (match_operand:VB_VLS 3 "register_operand")] "TARGET_VECTOR" { /* mask1 = operands[3] & operands[1]. */