On Tue, Jan 13, 2026 at 12:21:06AM +0800, Kito Cheng wrote:
> gcc.dg/torture/bitint-18.c triggers an ICE in push_partial_def when
> compiling for RISC-V with -O2.  The issue occurs because
> build_nonstandard_integer_type cannot handle bit widths larger than
> MAX_FIXED_MODE_SIZE.
> 
> For BITINT_TYPE with maxsizei > MAX_FIXED_MODE_SIZE, use build_bitint_type
> instead of build_nonstandard_integer_type, similar to what tree-sra.cc does.
> 
> gcc/ChangeLog:
> 
>       * tree-ssa-sccvn.cc (vn_walk_cb_data::push_partial_def): Use
>       build_bitint_type for BITINT_TYPE when maxsizei exceeds
>       MAX_FIXED_MODE_SIZE.

LGTM.

        Jakub

Reply via email to