gas replaces instructions on sparc

Eric Botcazou ebotcazou@adacore.com
Sun Jul 7 16:01:00 GMT 2013


> I have this in my .S file:
>     clr  %o3
> but in the compiled .o file I have:
>     mov  %g0, %o3
> Why does it happen?

Because clr isn't a SPARC instruction, it's a "synthethic" instruction which 
is a "or %g0,%g0," under the hood.  And mov isn't a SPARC instruction either, 
it's also a "synthethic" instruction which is a "or %g0," under the hood.

-- 
Eric Botcazou



More information about the Binutils mailing list