public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: juzhe.zhong@rivai.ai
To: gcc-patches@gcc.gnu.org
Cc: rguenther@suse.de, richard.earnshaw@arm.com, jakub@redhat.com,
	kenner@nyu.edu, jlaw@tachyum.com, gnu@the-meissners.org,
	jason@redhat.com, davem@redhat.com, joseph@codesourcery.com,
	richard.sandiford@arm.com, bernds_cb1@t-online.de, ian@airs.com,
	wilson@tuliptree.org, zhongjuzhe <juzhe.zhong@rivai.ai>
Subject: [PATCH 0/1] middle-end: Fix bit position comparison
Date: Wed, 27 Jul 2022 11:44:36 +0800	[thread overview]
Message-ID: <20220727034437.154625-1-juzhe.zhong@rivai.ai> (raw)

From: zhongjuzhe <juzhe.zhong@rivai.ai>

Hi, variable "bitpos" is compute using bitsize. I think it makes
sense for bit position checking whether it is out-of-bounds to
array using GET_MODE_BITSIZE instead of GET_MODE_PRECISION.

This patch is useful for RVV (RISC-V 'V') support that I am
going to push upstream. Thanks!

*** BLURB HERE ***

zhongjuzhe (1):
  Fix bit-position comparison

 gcc/expr.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.36.1




             reply	other threads:[~2022-07-27  3:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-27  3:44 juzhe.zhong [this message]
2022-07-27  3:44 ` [PATCH 1/1] Fix bit-position comparison juzhe.zhong
2022-07-27  6:46   ` Richard Biener
2022-07-27  7:09     ` juzhe.zhong
2022-07-27  7:35       ` Richard Biener
2022-07-27  8:00         ` juzhe.zhong
2022-07-27  8:12           ` Richard Biener
2022-07-27  8:26             ` juzhe.zhong
2022-07-27 12:56               ` Richard Biener
2022-07-27 13:12                 ` 钟居哲
2022-07-27 12:47     ` Richard Sandiford
2022-07-27 13:20       ` 钟居哲

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220727034437.154625-1-juzhe.zhong@rivai.ai \
    --to=juzhe.zhong@rivai.ai \
    --cc=bernds_cb1@t-online.de \
    --cc=davem@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gnu@the-meissners.org \
    --cc=ian@airs.com \
    --cc=jakub@redhat.com \
    --cc=jason@redhat.com \
    --cc=jlaw@tachyum.com \
    --cc=joseph@codesourcery.com \
    --cc=kenner@nyu.edu \
    --cc=rguenther@suse.de \
    --cc=richard.earnshaw@arm.com \
    --cc=richard.sandiford@arm.com \
    --cc=wilson@tuliptree.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).