This is the mail archive of the binutils@sourceware.cygnus.com 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]

shifts and rotates by 1 on ix86


It seems that gas (2.9.5.0.41) always uses the form with immediate for 
encoding shifts and rotates by immediate count, even if the count is 1
where special form of encoding could be used which is 1 byte shorter
(e.g. shll $1,%eax could be encoded as D1 E0, but gas outputs C1 E0 01).
I think gas should always produce the shortest possible encodings.

-- 
Alexander Sokolov
System Administrator
Netlink Co. Ltd., Moscow
Tel/Fax: +7 095 2786139


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