From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14564 invoked by alias); 12 Feb 2009 13:59:47 -0000 Received: (qmail 14520 invoked by uid 48); 12 Feb 2009 13:59:35 -0000 Date: Thu, 12 Feb 2009 13:59:00 -0000 Message-ID: <20090212135935.14519.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/27986] [4.2 Regression] jump to middle of loop on entry with using old version of an variable In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" 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 X-SW-Source: 2009-02/txt/msg01086.txt.bz2 ------- Comment #13 from ubizjak at gmail dot com 2009-02-12 13:59 ------- GCC: (GNU) 4.4.0 20090129 (experimental) [trunk revision 143750]: foo: movl 4(%rdi), %eax #, s .L2: movl %eax, %ecx # s, s.29 addl (%rsi), %ecx #* d, s.29 addq $4, %rsi #, d movl %eax, %r8d # s, s.30 cmpl %edx, %ecx # g, s movl %ecx, %eax # s.29, s jl .L2 #, movl %r8d, (%rdi) # s.30,* v ret GCC: (GNU) 4.3.4 20090211 (prerelease) [gcc-4_3-branch revision 144096]: foo: movl 4(%rdi), %ecx #, s .L2: movl %ecx, %eax # s, s.19 addl (%rsi), %eax #* d, s.19 addq $4, %rsi #, d movl %ecx, %r8d # s, s.20 cmpl %edx, %eax # g, s movl %eax, %ecx # s.19, s jl .L2 #, movl %r8d, (%rdi) # s.20,* v ret Fixed for 4.3 and 4.4 branch. -- ubizjak at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|3.4.0 |3.4.0 4.3.4 4.4.0 Summary|[4.2/4.3/4.4 Regression] |[4.2 Regression] jump to |jump to middle of loop on |middle of loop on entry with |entry with using old version|using old version of an |of an variable |variable http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27986