mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* doc/c-arm.texi (ARM-Instruction-Set): New node. Documents the
different syntaxes support by the ARM port. (ARM Directives): Add entry for .syntax.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2009-07-30 Nick Clifton <nickc@redhat.com>
|
2009-07-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* doc/c-arm.texi (ARM-Instruction-Set): New node. Documents the
|
||||||
|
different syntaxes support by the ARM port.
|
||||||
|
(ARM Directives): Add entry for .syntax.
|
||||||
|
|
||||||
* doc/c-mips.texi (MIPS insn): Fix typo.
|
* doc/c-mips.texi (MIPS insn): Fix typo.
|
||||||
|
|
||||||
2009-07-29 Alan Modra <amodra@bigpond.net.au>
|
2009-07-29 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
@ -323,11 +323,47 @@ features. The default is to warn.
|
|||||||
@node ARM Syntax
|
@node ARM Syntax
|
||||||
@section Syntax
|
@section Syntax
|
||||||
@menu
|
@menu
|
||||||
|
* ARM-Instruction-Set:: Instruction Set
|
||||||
* ARM-Chars:: Special Characters
|
* ARM-Chars:: Special Characters
|
||||||
* ARM-Regs:: Register Names
|
* ARM-Regs:: Register Names
|
||||||
* ARM-Relocations:: Relocations
|
* ARM-Relocations:: Relocations
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
|
@node ARM-Instruction-Set
|
||||||
|
@subsection Instruction Set Syntax
|
||||||
|
Two slightly different syntaxes are support for ARM and THUMB
|
||||||
|
instructions. The default, @code{divided}, uses the old style where
|
||||||
|
ARM and THUMB instructions had their own, separate syntaxes. The new,
|
||||||
|
@code{unified} syntax, which can be selected via the @code{.syntax}
|
||||||
|
directive, and has the following main features:
|
||||||
|
|
||||||
|
@table @bullet
|
||||||
|
@item
|
||||||
|
Immediate operands do not require a @code{#} prefix.
|
||||||
|
|
||||||
|
@item
|
||||||
|
The @code{IT} instruction may appear, and if it does it is validated
|
||||||
|
against subsequent conditional affixes. In ARM mode it does not
|
||||||
|
generate machine code, in THUMB mode it does.
|
||||||
|
|
||||||
|
@item
|
||||||
|
For ARM instructions the conditional affixes always appear at the end
|
||||||
|
of the instruction. For THUMB instructions conditional affixes can be
|
||||||
|
used, but only inside the scope of an @code{IT} instruction.
|
||||||
|
|
||||||
|
@item
|
||||||
|
All of the instructions new to the V6T2 architecture (and later) are
|
||||||
|
available. (Only a few such instructions can be written in the
|
||||||
|
@code{divided} syntax).
|
||||||
|
|
||||||
|
@item
|
||||||
|
The @code{.N} and @code{.W} suffixes are recognized and honored.
|
||||||
|
|
||||||
|
@item
|
||||||
|
All instructions set the flags if and only if they have an @code{s}
|
||||||
|
affix.
|
||||||
|
@end table
|
||||||
|
|
||||||
@node ARM-Chars
|
@node ARM-Chars
|
||||||
@subsection Special Characters
|
@subsection Special Characters
|
||||||
|
|
||||||
@ -722,6 +758,11 @@ This directive emits relocations that evaluate to the section-relative
|
|||||||
offset of each expression's symbol. This directive is only supported
|
offset of each expression's symbol. This directive is only supported
|
||||||
for PE targets.
|
for PE targets.
|
||||||
|
|
||||||
|
@cindex @code{.syntax} directive, ARM
|
||||||
|
@item .syntax [@code{unified} | @code{divided}]
|
||||||
|
This directive sets the Instruction Set Syntax as described in the
|
||||||
|
@ref{ARM-Instruction-Set} section.
|
||||||
|
|
||||||
@c TTTTTTTTTTTTTTTTTTTTTTTTTT
|
@c TTTTTTTTTTTTTTTTTTTTTTTTTT
|
||||||
|
|
||||||
@cindex @code{.thumb} directive, ARM
|
@cindex @code{.thumb} directive, ARM
|
||||||
|
Reference in New Issue
Block a user