public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/1] middle-end: Fix bit position comparison
@ 2022-07-27  3:44 juzhe.zhong
  2022-07-27  3:44 ` [PATCH 1/1] Fix bit-position comparison juzhe.zhong
  0 siblings, 1 reply; 12+ messages in thread
From: juzhe.zhong @ 2022-07-27  3:44 UTC (permalink / raw)
  To: gcc-patches
  Cc: rguenther, richard.earnshaw, jakub, kenner, jlaw, gnu, jason,
	davem, joseph, richard.sandiford, bernds_cb1, ian, wilson,
	zhongjuzhe

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




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-07-27 13:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27  3:44 [PATCH 0/1] middle-end: Fix bit position comparison juzhe.zhong
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       ` 钟居哲

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).