public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/60043] New: -fschedule-insns2 breaks anti-dependency
@ 2014-02-03 13:18 rguenth at gcc dot gnu.org
  2014-02-04  6:59 ` [Bug rtl-optimization/60043] " abel at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-02-03 13:18 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-04  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-03 13:18 [Bug rtl-optimization/60043] New: -fschedule-insns2 breaks anti-dependency rguenth at gcc dot gnu.org
2014-02-04  6:59 ` [Bug rtl-optimization/60043] " abel at gcc dot gnu.org
2014-02-04  7:14 ` abel at gcc dot gnu.org
2014-02-04  9:26 ` rguenther at suse dot de
2014-02-04  9:27 ` rguenth at gcc dot gnu.org
2014-02-04  9:37 ` abel at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).