https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 54794 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54794&action=edit testcase for riscv32-elf Here is a testcase which also fails for riscv32-elf. Note it only fails at -O0.