public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/39762]  New: [4.4/4.5 Regression] IRA ICE with -msoft-float
@ 2009-04-14  9:29 jakub at gcc dot gnu dot org
  2009-04-14  9:29 ` [Bug rtl-optimization/39762] " jakub at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-14  9:29 UTC (permalink / raw)
  To: gcc-bugs

/* { dg-do compile } */
/* { dg-options "-Os" } */
/* { dg-options "-Os -msoft-float" { target { { i?86-* x86_64-* } && ilp32 } }
} */

extern void bar (void);

void
foo (unsigned int x, unsigned int y, unsigned int z)
{
  unsigned int a, b, d, e;
  unsigned int f = (8 << 12) + 0.000122 * 4096;
  b = (x << 12) + 0.000122 * 4096;
  e = (100 << 12) + 0.000122 * 4096;
  b = (unsigned long long) (((b << 13) / e) + 1) / 2;
  a = (y / 8);
  e = (a << 12) + 0.000122 * 4096;
  d = (unsigned long long) (b * e + 2048) >> 12;
  d = (unsigned long long) (d * f + 2048) >> 12;
  if (z >= d)
    bar ();
}

ICEs on i?86-linux (and x86_64-linux -m32) with -Os -msoft-float since r142892,
with -fno-ira it worked until that option has been removed.


-- 
           Summary: [4.4/4.5 Regression] IRA ICE with -msoft-float
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: i?86-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39762


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

end of thread, other threads:[~2009-04-27  6:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-14  9:29 [Bug rtl-optimization/39762] New: [4.4/4.5 Regression] IRA ICE with -msoft-float jakub at gcc dot gnu dot org
2009-04-14  9:29 ` [Bug rtl-optimization/39762] " jakub at gcc dot gnu dot org
2009-04-14  9:51 ` jakub at gcc dot gnu dot org
2009-04-15 21:49 ` vmakarov at redhat dot com
2009-04-16 15:16 ` vmakarov at gcc dot gnu dot org
2009-04-16 16:56 ` [Bug rtl-optimization/39762] [4.4 " jakub at gcc dot gnu dot org
2009-04-16 17:36 ` vmakarov at redhat dot com
2009-04-16 18:01 ` jakub at gcc dot gnu dot org
2009-04-21 16:01 ` jakub at gcc dot gnu dot org
2009-04-22 20:16 ` vmakarov at gcc dot gnu dot org
2009-04-27  6:55 ` jakub at gcc dot gnu dot 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).