This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24627] [4.1 Regression] xntp miscompiled
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2005 16:12:17 -0000
- Subject: [Bug middle-end/24627] [4.1 Regression] xntp miscompiled
- References: <bug-24627-3563@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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