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 c/17025] attribute regparm code-generation bug


------- 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


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