This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/24627] [4.1 Regression] xntp miscompiled



------- Comment #13 from pinskia at gcc dot gnu dot org  2005-11-02 16:12 -------
(In reply to comment #12)
> Here is another more reduced testcase (still at -O1 -fno-tree-sra):
That testcase is invalid, the one which is valid:
ypedef struct {
  unsigned a;
} l_fp;
void dolfptoa(short ndec)
{
  l_fp work;
  unsigned workUl_fXl_uf;
  workUl_fXl_uf = 0x535f3d8;
  while (ndec > 0) {

    ndec--;
    work.a = 0;
    work.a = 0;
    if (workUl_fXl_uf & 0x80000000)
      work.a |= 0x1;
    workUl_fXl_uf <<= 1;

    work.a <<= 1;
    if (workUl_fXl_uf & 0x80000000)
      work.a |= 0x1;
    workUl_fXl_uf <<= 1;

    work.a <<= 1;

    if (!(work.a < 10))
      abort ();
  }
}
int main()
{
  dolfptoa(8);
  return 0;
}


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]