From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15501 invoked by alias); 15 Oct 2014 17:57:12 -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 15457 invoked by uid 48); 15 Oct 2014 17:57:09 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53513] [SH] Add support for fschg and fpchg insns and improve fenv support Date: Wed, 15 Oct 2014 17:57: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: olegendo at gcc dot gnu.org X-Bugzilla-Status: NEW 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: attachments.isobsolete attachments.created 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: 2014-10/txt/msg01184.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53513 Oleg Endo changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #33721|0 |1 is obsolete| | --- Comment #28 from Oleg Endo --- Created attachment 33727 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33727&action=edit Using virtual FPSCR registers to model insn dependencies (In reply to Oleg Endo from comment #27) > Created attachment 33721 [details] > Using virtual FPSCR registers to model insn dependencies > > Updated patch that avoids the single_set problems by using (clobber (reg:SI > FPSCR_STAT_REG)) instead of a set. This also eliminates the fsca pattern > changes in the previous patch. Since the 'fpu_switch' insn is still a > multiple set insn, it won't be used for delay slot stuffing, but this is a > minor issue that can be addressed later. I'm testing the patch now on > sh-sim. At least 'make all' works. Testing for '-m4 -ml' and '-m4 -mb' shows one new failure (ignoring the ISR failures): FAIL: gcc.c-torture/execute/pr28982a.c -O1 (internal compiler error) FAIL: gcc.c-torture/execute/pr28982a.c -O1 (test for excess errors) The problem is the define_split and the peephole2 patterns below the "fpu_switch" insn. I don't know how/if that was working before. I've removed the peephole2 pattern and rewrote the split pattern, which fixes the failure above. I'll re-test the whole thing again.