From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20453 invoked by alias); 3 Feb 2014 13:18:11 -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 19998 invoked by uid 48); 3 Feb 2014 13:18:06 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/60043] New: -fschedule-insns2 breaks anti-dependency Date: Mon, 03 Feb 2014 13:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cf_gcctarget Message-ID: 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/msg00151.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60043 Bug ID: 60043 Summary: -fschedule-insns2 breaks anti-dependency Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target: x86_64-*-* int foo (long long *a, short *b, int n) { *a = (long long)(n * 100); return (*b) + 1000; } produces at -O2 foo: .LFB0: .cfi_startproc imull $100, %edx, %edx movswl (%rsi), %eax movslq %edx, %rdx movq %rdx, (%rdi) addl $1000, %eax ret fixed by -fno-schedule-insns2.