[Bug c/17025] attribute regparm code-generation bug
xod at starmen dot net
gcc-bugzilla@gcc.gnu.org
Sat Aug 14 08:50:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list