[0/1] middle-end: Fix bit position comparison

Message ID 20220727034437.154625-1-juzhe.zhong@rivai.ai
Headers
Series middle-end: Fix bit position comparison |

Message

juzhe.zhong@rivai.ai July 27, 2022, 3:44 a.m. UTC
  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(-)