This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17025] attribute regparm code-generation bug
- From: "xod at starmen dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2004 08:50:41 -0000
- Subject: [Bug c/17025] attribute regparm code-generation bug
- References: <20040814084426.17025.xod@starmen.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From xod at starmen dot net 2004-08-14 08:50 -------
Eh, I forgot a few of the important details.
It should print "OK" if the code is nonbugged, and nothing if the generated code
is bad.
gcc seems to be mangling the assembly corresponding to this code:
V&=0xC0;
donut = 0;
if(V&0x80)
Cheese();
Generated assembly:
"andl $192, %esi"
"movb $0, donut"
"js .L9"
(andl and movb are in the wrong order)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17025