x86: Document movsx/movsxd/movzx for AT&T syntax
Document different mnemonics of movsx, movsxd and movzx in AT&T syntax. PR gas/25438 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T syntax.
This commit is contained in:
parent
a9b3453245
commit
0e6724dee4
|
@ -1,3 +1,9 @@
|
|||
2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR gas/25438
|
||||
* doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
|
||||
syntax.
|
||||
|
||||
2020-02-13 Fangrui Song <maskray@google.com>
|
||||
H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
|
|
|
@ -835,6 +835,59 @@ are called @samp{cbtw}, @samp{cwtl}, @samp{cwtd}, @samp{cltd}, @samp{cltq}, and
|
|||
@samp{cqto} in AT&T naming. @code{@value{AS}} accepts either naming for these
|
||||
instructions.
|
||||
|
||||
@cindex extension instructions, i386
|
||||
@cindex i386 extension instructions
|
||||
@cindex extension instructions, x86-64
|
||||
@cindex x86-64 extension instructions
|
||||
The Intel-syntax extension instructions
|
||||
|
||||
@itemize @bullet
|
||||
@item
|
||||
@samp{movsx} --- sign-extend @samp{reg8/mem8} to @samp{reg16}.
|
||||
|
||||
@item
|
||||
@samp{movsx} --- sign-extend @samp{reg8/mem8} to @samp{reg32}.
|
||||
|
||||
@item
|
||||
@samp{movsx} --- sign-extend @samp{reg8/mem8} to @samp{reg64}
|
||||
(x86-64 only).
|
||||
|
||||
@item
|
||||
@samp{movsx} --- sign-extend @samp{reg16/mem16} to @samp{reg32}
|
||||
|
||||
@item
|
||||
@samp{movsx} --- sign-extend @samp{reg16/mem16} to @samp{reg64}
|
||||
(x86-64 only).
|
||||
|
||||
@item
|
||||
@samp{movsxd} --- sign-extend @samp{reg32/mem32} to @samp{reg64}
|
||||
(x86-64 only).
|
||||
|
||||
@item
|
||||
@samp{movzx} --- zero-extend @samp{reg8/mem8} to @samp{reg16}.
|
||||
|
||||
@item
|
||||
@samp{movzx} --- zero-extend @samp{reg8/mem8} to @samp{reg32}.
|
||||
|
||||
@item
|
||||
@samp{movzx} --- zero-extend @samp{reg8/mem8} to @samp{reg64}
|
||||
(x86-64 only).
|
||||
|
||||
@item
|
||||
@samp{movzx} --- zero-extend @samp{reg16/mem16} to @samp{reg32}
|
||||
|
||||
@item
|
||||
@samp{movzx} --- zero-extend @samp{reg16/mem16} to @samp{reg64}
|
||||
(x86-64 only).
|
||||
@end itemize
|
||||
|
||||
@noindent
|
||||
are called @samp{movsbw/movsxb/movsx}, @samp{movsbl/movsxb/movsx},
|
||||
@samp{movsbq/movsb/movsx}, @samp{movswl/movsxw}, @samp{movswq/movsxw},
|
||||
@samp{movslq/movsxl}, @samp{movzbw/movzxb/movzx},
|
||||
@samp{movzbl/movzxb/movzx}, @samp{movzbq/movzxb/movzx},
|
||||
@samp{movzwl/movzxw} and @samp{movzwq/movzxw} in AT&T syntax.
|
||||
|
||||
@cindex jump instructions, i386
|
||||
@cindex call instructions, i386
|
||||
@cindex jump instructions, x86-64
|
||||
|
|
Loading…
Reference in New Issue