[Bug middle-end/24627] [4.1 Regression] xntp miscompiled
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Nov 2 16:12:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list