https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106632
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:df5204ddd4b8e3a2d02bb3ad5bcdb9d636b02537 commit r13-2190-gdf5204ddd4b8e3a2d02bb3ad5bcdb9d636b02537 Author: Andrew Pinski <apin...@marvell.com> Date: Mon Aug 15 22:58:09 2022 +0000 [RISCV] Fix PR 106632 and PR 106588 a few constraints in bitmanip.md The constraints should be n instead of i. Also there needs to a check for out of bounds zero_extract for *bexti. gcc/ChangeLog: PR target/106632 PR target/106588 * config/riscv/bitmanip.md (*shNadduw): Use n constraint instead of i. (*slliuw): Likewise. (*bexti): Likewise. Also add a check for operands[2] to be less than the mode bitsize.