Bug 16421 - [4.0 Regression] gcc.c-torture/execute/941025-1.c fails on MIPS-elf
Summary: [4.0 Regression] gcc.c-torture/execute/941025-1.c fails on MIPS-elf
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Diego Novillo
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2004-07-07 23:35 UTC by Eric Christopher
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux
Target: mips-unknown-elf
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Christopher 2004-07-07 23:35:33 UTC
FAIL: gcc.c-torture/execute/941025-1.c execution,  -O2
Comment 1 Andrew Pinski 2004-07-07 23:49:46 UTC
long f (x, y)
     long x,y;
{
  return (x > 1) ? y : (y & 1);
}

main ()
{
  if (f (2L, 0xdecadeL) != 0xdecadeL)
    abort ();
  exit (0);
}

This look like an RTL problem again.
Comment 2 Eric Christopher 2004-09-30 19:45:19 UTC
Fixed