From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32623 invoked by alias); 24 Nov 2013 13:30:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32475 invoked by uid 48); 24 Nov 2013 13:30:39 -0000 From: "urjaman at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57339] [SH] Wrong ISR FPU register save/restore Date: Sun, 24 Nov 2013 13:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: urjaman at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg02461.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57339 Urja Rannikko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |urjaman at gmail dot com --- Comment #2 from Urja Rannikko --- (In reply to Oleg Endo from comment #0) > On SH2A and SH2E R0 is not a banked register and must be pushed before > dealing with the FP regs. This is false for atleast SH2A, that is, r0 is a banked register on SH2A. I dont know about SH2E. A small quote from the sh2a software manual (2.2.6 Register Banks) (Rev 3.00): "For the nineteen 32-bit registers comprising general registers R0 to R14, control register GBR, and system registers MACH, MACL, and PR, high-speed register saving and restoration can be carried out using a register bank. "