Message ID | 20230625033654.1150808-1-juzhe.zhong@rivai.ai |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6716289vqr; Sat, 24 Jun 2023 20:37:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71mtOFdRuIGt73658zv4tTmkq63slH3+2CAAP/QnivfqT0l6bqaQ2rXsAPWPM93v+CC1N4 X-Received: by 2002:a17:907:16a6:b0:96a:2210:7dd8 with SMTP id hc38-20020a17090716a600b0096a22107dd8mr23094415ejc.38.1687664261204; Sat, 24 Jun 2023 20:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687664261; cv=none; d=google.com; s=arc-20160816; b=aNQYylX6iy4Wr45HU0eVeCk5IKL+dOi7p8TTxmnc6JAVnfn+LuR1Mui0O8uCO0c9Fd fZXNBUyayI9RLiWDLNDW/4SMuBsk9UlD2eaBCoi+cQ98OGyeapcnYemK6eyibOnxie/Y ykbKJJGtpu42QY0yimDWPIFclZQdSv/oui6RLMjdLcuKIouQmgkg60GQb2CazAbag+Kw UrsqVKOJ8twEHjSxw0iW6U4rJnnRbRK/CDi8plWTs5pQvJbH3XHWhA6gMC4OX37oj5oB vB30fk/+LkAOuSNK9hRVflS+aRucMEXtW7WwX10ZkdTJ0Z6PNSNXJHy2AwauvUaYQu88 xCRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=b5AAs6u9wEB4UtSZ13eg2789MyAu4dReqdV7uXE7rV4=; fh=5twxrN/WEzQeUdNkUbl0rOBHHeF0ppPO9shJqNBboKQ=; b=ck+gWS83ttuzII8RkIzcDS3OqWsm9WdgtP9Kgi75heMFFwROb1mTsD8cGDhNl7GauH nZesGTY2PVXjMxHYN/qg/2XfA97SuRJP8xQzxcjo3qJjVmgJ3ryTyao0A4uuKWAs3dIO P/4Bo19Y0Do2l6ujp7GirxIa8rXvDXAF9SNlZaFJBsuFaIAOZ1djIAZUcSNvq/5WrQYP RS1Rwv7lOpnEifo2VBuqVtvNsoo1n4onqDROBy6VxQ90NkP/NV5Dqwb9CJ4vqbN5TUyi ofo0Xc/0c8MEpQ1D9SiCtreLfL/YqtqINq72lnUWMI3B/08gk8U25iIxsfp24SWP5BQ/ t8tw== 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 sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id kj4-20020a170907764400b0098e444cba76si199333ejc.91.2023.06.24.20.37.40 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jun 2023 20:37:41 -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 DE9B13858288 for <ouuuleilei@gmail.com>; Sun, 25 Jun 2023 03:37:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by sourceware.org (Postfix) with ESMTPS id 95FEE3858D35 for <gcc-patches@gcc.gnu.org>; Sun, 25 Jun 2023 03:37:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 95FEE3858D35 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: bizesmtp67t1687664217tf4rwwa2 Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 25 Jun 2023 11:36:56 +0800 (CST) X-QQ-SSF: 01400000000000G0S000000A0000000 X-QQ-FEAT: 2i+QW+6os+1MQg7EaRRnxGY+FjBgmR5F5ZRsD9vo8XDvIE+x7oGxl6805PF/w pU7j3VH4d2Ywj9hPOrAlEVzTylCtyt8++ZBfxxYnKzOBtUnpvjyoxaGKNcJZewSJqIwgI5o WYhljfWISTXNV7A/7odaEFA8LZF85/5ULJf66RDBS2gMXfTUiMTQpnnEbMOYgN6Dj0KdQmD ySz4ReDB6MNsLGmX2s+9c7m4VYZs5OYKx7AmKyIIEoFktJNQaLuSEZx0ZDcNbEXDHupbwSF Dfimlr0Ibs1haPaotsIE4eGrKSwGFb0YlHJ0IrFmbFisx+OuIdm+QudBe1OzPtEvPVWCwtB qAdpQth0WKmwv+3GHndCJhOQ1JpeUlHTCXxtr/r+UfLZlBOGl5BAqNxjKoIh4xyniJKpCXP X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13223156396070061701 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com, rguenther@suse.de, jeffreyalaw@gmail.com, Ju-Zhe Zhong <juzhe.zhong@rivai.ai> Subject: [PATCH] internal-fn: Fix bug of BIAS argument index Date: Sun, 25 Jun 2023 11:36:54 +0800 Message-Id: <20230625033654.1150808-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769644240499696681?= X-GMAIL-MSGID: =?utf-8?q?1769644240499696681?= |
Series |
internal-fn: Fix bug of BIAS argument index
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
juzhe.zhong@rivai.ai
June 25, 2023, 3:36 a.m. UTC
From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
When trying to enable LEN_MASK_{LOAD,STORE} in RISC-V port,
I found I made a mistake in case of argument index of BIAS.
This patch is an obvious fix,
Ok for trunk ?
gcc/ChangeLog:
* internal-fn.cc (expand_partial_store_optab_fn): Fix bug of BIAS argument index.
---
gcc/internal-fn.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 6/24/23 21:36, juzhe.zhong@rivai.ai wrote: > From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai> > > When trying to enable LEN_MASK_{LOAD,STORE} in RISC-V port, > I found I made a mistake in case of argument index of BIAS. > > This patch is an obvious fix, > > Ok for trunk ? > > gcc/ChangeLog: > > * internal-fn.cc (expand_partial_store_optab_fn): Fix bug of BIAS argument index. OK jeff
Committed, thanks Jeff. Pan -----Original Message----- From: Gcc-patches <gcc-patches-bounces+pan2.li=intel.com@gcc.gnu.org> On Behalf Of Jeff Law via Gcc-patches Sent: Sunday, June 25, 2023 8:48 PM To: juzhe.zhong@rivai.ai; gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com; rguenther@suse.de Subject: Re: [PATCH] internal-fn: Fix bug of BIAS argument index On 6/24/23 21:36, juzhe.zhong@rivai.ai wrote: > From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai> > > When trying to enable LEN_MASK_{LOAD,STORE} in RISC-V port, > I found I made a mistake in case of argument index of BIAS. > > This patch is an obvious fix, > > Ok for trunk ? > > gcc/ChangeLog: > > * internal-fn.cc (expand_partial_store_optab_fn): Fix bug of BIAS argument index. OK jeff
diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc index 1c2fd487e2a..9017176dc7a 100644 --- a/gcc/internal-fn.cc +++ b/gcc/internal-fn.cc @@ -2991,7 +2991,7 @@ expand_partial_store_optab_fn (internal_fn ifn, gcall *stmt, convert_optab optab maskt = gimple_call_arg (stmt, 3); mask = expand_normal (maskt); create_input_operand (&ops[3], mask, TYPE_MODE (TREE_TYPE (maskt))); - biast = gimple_call_arg (stmt, 4); + biast = gimple_call_arg (stmt, 5); bias = expand_normal (biast); create_input_operand (&ops[4], bias, QImode); icode = convert_optab_handler (optab, TYPE_MODE (type), GET_MODE (mask));