This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/67642] New: [SH] FPSCR not saved,loaded,restored for ISRs and single-precision-only FPU
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 20 Sep 2015 02:25:08 +0000
- Subject: [Bug target/67642] New: [SH] FPSCR not saved,loaded,restored for ISRs and single-precision-only FPU
- Auto-submitted: auto-generated
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.