https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112381
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- Created attachment 56507 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56507&action=edit reduced.i Attached reduced version. Not bothered cleaning it up b/c of that issue with it working on trunk. Needs gcc -O2 -m32 -mstackrealign -march=raptorlake -c nir_opt_idiv_const.c.i to reproduce.