2008-03-25 09:53 AM
GCC assembler bug: bit reverse RBIT not compiled properly
2011-05-17 03:27 AM
FYI,
I've noticed that there is bug in GCC suite (Code sourcery 2007q3-53 and older) when generating THUMB2 code. RBIT Rd,Rs that is supposed to reverse bits works only for RBIT Rd,R0 (Rs is encoded twice in opcode, GCC assembler sets second encoding of Rs always to 0) This bug affects CodeSourcery Sourcery G++, Rowley Crossworks , Raisonance RIDE and other tools based on GCC. I've worked around this bug by directly generating opcode .word 0xFxAyFA9y //RBIT Rx,Ry //Rx = bit reverse Ry ;x,y= 0 to F Anybody knows how to report this bug to GCC folks so it is fixed in next release? Ivan2011-05-17 03:27 AM
yes. use the -save-temps option to generate a preprocessed version of source file that exhibits the problem. then post the file + bug description to the
by sending an email to: arm-gnu (at) codesourcery REMOVE THIS (dot) com