https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67642
Bug ID: 67642 Summary: [SH] FPSCR not saved,loaded,restored for ISRs and single-precision-only FPU Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: olegendo at gcc dot gnu.org Target Milestone: --- Target: sh*-*-* If the FPU is (potentially) used in ISRs, it should be brought into a consistent state and should not modify the interrupted context's FPSCR state, even if there is only a single-precision FPU (or the FPU is used as single-precision-only) and FPU mode-switching is not done. The test case gcc.target/sh/pragma-isr-trapa2.c fail when ran with -m2e, -m3e, -m2a-single-only, -m4-single-only, -m4a-single-only The other ISR related test cases seem to miss the check.