From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111703 invoked by alias); 13 Sep 2015 06:22:40 -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 111326 invoked by uid 48); 13 Sep 2015 06:22:06 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/61930] [SH] SImode addressing modes not used when storing SFmode values via SImode regs Date: Sun, 13 Sep 2015 06:22: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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: 2015-09/txt/msg01053.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61930 --- Comment #1 from Oleg Endo --- I think this is related to PR 29969. In some cases it might make sense to do mem copy like insns either in SImode (if displacement addressing is better) or in SFmode (to reduce GP reg pressure). This is not only limited to constants, but can be applied to all load-store pairs of 4 or 8 bytes. Whether using FP regs or GP regs for a copy depends on the register pressure and the address modes that are required. If GP reg pressure is high and copy insns are blindly changed to use FP regs it might result in worse code because of additional address reg calculation insns added. I guess this type of optimization could be part of AMS.