On Mon, Feb 2, 2026 at 6:30 AM Jeffrey Law <[email protected]> wrote:
>
>
>
> On 2/2/2026 1:13 AM, Andrew Pinski wrote:
> > In the testcase ifcvt is trying to do a emit_store_flag into a XImode.
> > That will cause an ICE because XImode does not have any arithmetic optabs
> > associated with it. This is because it is greater than MAX_FIXED_MODE_SIZE
> > (along other things).
> > noce_emit_store_flag already has code to reject non-scalar modes, so
> > this adds a new check for modes that are greater than MAX_FIXED_MODE_SIZE.
> >
> > Bootstrapped and tested on aarch64-linux-gnu.
> >
> >       PR rtl-optimization/123294
> >
> > gcc/ChangeLog:
> >
> >       * ifcvt.cc (noce_emit_store_flag): Reject modes
> >       greater than MAX_FIXED_MODE_SIZE.
> >
> > gcc/testsuite/ChangeLog:
> >
> >       * gcc.dg/pr123294-1.c: New test.
> >       * gcc.target/aarch64/pr123294-1.c: New test.
> OK once Kyrylo' s testsuite comments are addressed.

Attached is what I pushed in the end with the change to the testcase
not to use builtin directly.

Thanks,
Andrew


>
> jeff

Attachment: 0001-ifcvt-Fix-store-flag-of-XImode-on-aarch64-while-ifcv.patch
Description: Binary data

Reply via email to