https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116887
--- Comment #27 from chenglulu <chenglulu at loongson dot cn> --- (In reply to chenglulu from comment #26) > (In reply to Xi Ruoyao from comment #23) > > Anyway I'd like to know more info about PR47610 and PR52999. In the old > > days people didn't write rationales in ChangeLog so it's hard to understand > > the rationales of the fixes. > > > > And is there a test case for which patch 2 does not work? > > I'll try it today. Um, I didn't find such a test case. MIPS mentioned in commit 08d0963a0e05e44f02c3e6b35faf94669874cb89 that this avoids problems when immediate exceeds the immediate range of ADDI and the virtual register is not allocable. But without a testcase, I don't know under what circumstances this problem can occur.