https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #402 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- I've opened PR 117182 for a wrong fldi0/1 issue. Looks target + RA issue. FYI, with the patches in PR 116932, PR 117111 and PR 117182 on top of devel/sh-lra, c/c++ testsuite shows only one regression against trunk -mno-lra: FAIL: gcc.target/sh/hiconst.c scan-assembler-times mov\t#0 2 OTOH, the following FAILs on trunk -mno-lra are solved: FAIL: gcc.c-torture/compile/pr55921.c -O1 (test for excess errors) FAIL: gcc.c-torture/compile/pr55921.c -O2 (test for excess errors) FAIL: gcc.c-torture/compile/pr55921.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) FAIL: gcc.c-torture/compile/pr55921.c -O3 -g (test for excess errors) FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -O2 -flto -fno-use-linker-plugin -flto-partition=none FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -Og -g FAIL: gcc.c-torture/execute/ieee/compare-fp-1.c execution, -Os FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -O2 -flto -fno-use-linker-plugin -flto-partition=none FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -Og -g FAIL: gcc.c-torture/execute/ieee/compare-fp-4.c execution, -Os FAIL: gcc.dg/atomic/c11-atomic-exec-5.c -O2 execution test FAIL: gcc.dg/atomic/c11-atomic-exec-5.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test FAIL: gcc.dg/atomic/c11-atomic-exec-5.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test FAIL: gcc.dg/atomic/c11-atomic-exec-5.c -O3 -g execution test These may be simply accidental with the perturbations of generated code, though.