diff options
author | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2010-09-23 15:11:56 +0000 |
---|---|---|
committer | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2010-09-23 15:11:56 +0000 |
commit | 691338631685cad7a3b8d8e330df408c999e423a (patch) | |
tree | 9f47bbcf3a3aca9070749bf8304e4952adcf8837 /gas/doc | |
parent | 78336cd61ff68d284420bb8c5498ffc125579ed3 (diff) | |
download | gdb-691338631685cad7a3b8d8e330df408c999e423a.zip gdb-691338631685cad7a3b8d8e330df408c999e423a.tar.gz gdb-691338631685cad7a3b8d8e330df408c999e423a.tar.bz2 |
* gas/config/tc-arm.c (md_pseduo_table): Add .arch_extension directive.
(arm_option_extension_value_table): Add.
(arm_extensions): Change type.
(arm_option_cpu_table): Rename...
(arm_option_fpu_table): ...to this.
(arm_fpus): Change type.
(arm_parse_extension): Enforce alphabetical order. Allow
extensions to be removed.
(arm_parse_arch): Allow extensions to be specified with -march.
(s_arm_arch_extension): Add.
(s_arm_fpu): Update for type changes.
* gas/doc/c-arm.texi: Document changes to infrastructure.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-arm.texi | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index f64b554..479d6fa 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -133,12 +133,24 @@ assembler to accept instructions valid for any ARM processor. In addition to the basic instruction set, the assembler can be told to accept various extension mnemonics that extend the processor using the co-processor instruction space. For example, @code{-mcpu=arm920+maverick} -is equivalent to specifying @code{-mcpu=ep9312}. The following extensions -are currently supported: -@code{+maverick} -@code{+iwmmxt} +is equivalent to specifying @code{-mcpu=ep9312}. + +Multiple extensions may be specified, separated by a @code{+}. The +extensions should be specified in ascending alphabetical order. + +Extension mnemonics may also be removed from those the assembler accepts. +This is done be prepending @code{no} to the option that adds the extension. +Extensions that are removed should be listed after all extensions which have +been added, again in ascending alphabetical order. For example, +@code{-mcpu=ep9312+nomaverick} is equivalent to specifying @code{-mcpu=arm920}. + + +The following extensions are currently supported: +@code{iwmmxt}, +@code{iwmmxt2}, +@code{maverick}, and -@code{+xscale}. +@code{xscale}. @cindex @code{-march=} command line option, ARM @item -march=@var{architecture}[+@var{extension}@dots{}] @@ -503,6 +515,18 @@ boundary). This is for compatibility with ARM's own assembler. Select the target architecture. Valid values for @var{name} are the same as for the @option{-march} commandline option. +Specifying @code{.arch} clears any previously selected architecture +extensions. + +@cindex @code{.arch_extension} directive, ARM +@item .arch_extension @var{name} +Add or remove an architecture extension to the target architecture. Valid +values for @var{name} are the same as those accepted as architectural +extensions by the @option{-mcpu} commandline option. + +@code{.arch_extension} may be used multiple times to add or remove extensions +incrementally to the architecture being compiled for. + @cindex @code{.arm} directive, ARM @item .arm This performs the same action as @var{.code 32}. @@ -537,6 +561,9 @@ selects Thumb, with the value 32 selecting ARM. Select the target processor. Valid values for @var{name} are the same as for the @option{-mcpu} commandline option. +Specifying @code{.cpu} clears any previously selected architecture +extensions. + @c DDDDDDDDDDDDDDDDDDDDDDDDDD @cindex @code{.dn} and @code{.qn} directives, ARM |