This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: gas replaces instructions on sparc


> 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


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