From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29842 invoked by alias); 24 Feb 2014 16:03:02 -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 29751 invoked by uid 48); 24 Feb 2014 16:02:59 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/50677] volatile forces load into register Date: Mon, 24 Feb 2014 16:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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: 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-02/txt/msg02450.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50677 --- Comment #4 from H.J. Lu --- Combine generates Trying 6, 7 -> 8: Failed to match this instruction: (set (mem/v:SI (reg/v/f:DI 85 [ i ]) [2 *i_2(D)+0 S4 A32]) (plus:SI (mem/v:SI (reg/v/f:DI 85 [ i ]) [2 *i_2(D)+0 S4 A32]) (const_int 1 [0x1]))) from (insn 6 3 7 2 (set (reg:SI 83 [ D.1752 ]) (mem/v:SI (reg/v/f:DI 85 [ i ]) [2 *i_2(D)+0 S4 A32])) x.i:1 90 {*movsi_ internal} (nil)) (insn 7 6 8 2 (parallel [ (set (reg:SI 84 [ D.1752 ]) (plus:SI (reg:SI 83 [ D.1752 ]) (const_int 1 [0x1]))) (clobber (reg:CC 17 flags)) ]) x.i:1 266 {*addsi_1} (expr_list:REG_DEAD (reg:SI 83 [ D.1752 ]) (expr_list:REG_UNUSED (reg:CC 17 flags) (nil)))) Why doesn't combine include (clobber (reg:CC 17 flags))?