Next: ARM Opcodes, Previous: ARM Floating Point, Up: ARM-Dependent
.2byte
expression [,
expression]*
.4byte
expression [,
expression]*
.8byte
expression [,
expression]*
.align
expression [,
expression]
.arch
nameSpecifying .arch
clears any previously selected architecture
extensions.
.arch_extension
name.arch_extension
may be used multiple times to add or remove extensions
incrementally to the architecture being compiled for.
.arm
.bss
.bss
section.
.cantunwind
.code [16|32]
.cpu
nameSpecifying .cpu
clears any previously selected architecture
extensions.
.dn
register name [
.type] [[
index]]
.qn
register name [
.type] [[
index]]
dn
and qn
directives are used to create typed
and/or indexed register aliases for use in Advanced SIMD Extension
(Neon) instructions. The former should be used to create aliases
of double-precision registers, and the latter to create aliases of
quad-precision registers.
If these directives are used to create typed aliases, those aliases can be used in Neon instructions instead of writing types after the mnemonic or after each operand. For example:
x .dn d2.f32 y .dn d3.f32 z .dn d4.f32[1] vmul x,y,z
This is equivalent to writing the following:
vmul.f32 d2,d3,d4[1]
Aliases created using dn
or qn
can be destroyed using
unreq
.
.eabi_attribute
tag,
valueThe tag is either an attribute number, or one of the following:
Tag_CPU_raw_name
, Tag_CPU_name
, Tag_CPU_arch
,
Tag_CPU_arch_profile
, Tag_ARM_ISA_use
,
Tag_THUMB_ISA_use
, Tag_FP_arch
, Tag_WMMX_arch
,
Tag_Advanced_SIMD_arch
, Tag_PCS_config
,
Tag_ABI_PCS_R9_use
, Tag_ABI_PCS_RW_data
,
Tag_ABI_PCS_RO_data
, Tag_ABI_PCS_GOT_use
,
Tag_ABI_PCS_wchar_t
, Tag_ABI_FP_rounding
,
Tag_ABI_FP_denormal
, Tag_ABI_FP_exceptions
,
Tag_ABI_FP_user_exceptions
, Tag_ABI_FP_number_model
,
Tag_ABI_align_needed
, Tag_ABI_align_preserved
,
Tag_ABI_enum_size
, Tag_ABI_HardFP_use
,
Tag_ABI_VFP_args
, Tag_ABI_WMMX_args
,
Tag_ABI_optimization_goals
, Tag_ABI_FP_optimization_goals
,
Tag_compatibility
, Tag_CPU_unaligned_access
,
Tag_FP_HP_extension
, Tag_ABI_FP_16bit_format
,
Tag_MPextension_use
, Tag_DIV_use
,
Tag_nodefaults
, Tag_also_compatible_with
,
Tag_conformance
, Tag_T2EE_use
,
Tag_Virtualization_use
The value is either a number
, "string"
, or
number, "string"
depending on the tag.
Note - the following legacy values are also accepted by tag:
Tag_VFP_arch
, Tag_ABI_align8_needed
,
Tag_ABI_align8_preserved
, Tag_VFP_HP_extension
,
.even
.extend
expression [,
expression]*
.ldouble
expression [,
expression]*
.fnend
If no personality routine has been specified then standard personality routine 0 or 1 will be used, depending on the number of unwind opcodes required.
.fnstart
.force_thumb
.fpu
name.handlerdata
.fnend
directive will be added to the exception table entry.
Must be preceded by a .personality
or .personalityindex
directive.
.inst
opcode [ , ... ]
.inst.n
opcode [ , ... ]
.inst.w
opcode [ , ... ]
.inst.n
and .inst.w
allow the Thumb instruction size to be
specified explicitly, overriding the normal encoding rules.
.ldouble
expression [,
expression]*
.extend
.
.ltorg
GAS
maintains a separate literal pool for each section and each
sub-section. The .ltorg
directive will only affect the literal
pool of the current section and sub-section. At the end of assembly
all remaining, un-empty literal pools will automatically be dumped.
Note - older versions of GAS
would dump the current literal
pool any time a section change occurred. This is no longer done, since
it prevents accurate control of the placement of literal pools.
.movsp
reg [, #
offset]
.object_arch
name.arch
directive.
Typically this is useful when code uses runtime detection of CPU features.
.packed
expression [,
expression]*
.pad #
count.personality
name.personalityindex
index.pool
.req
register namefoo .req r0
.save
reglist
core registers
.save {r4, r5, r6, lr} stmfd sp!, {r4, r5, r6, lr}
FPA registers
.save f4, 2 sfmfd f4, 2, [sp]!
VFP registers
.save {d8, d9, d10} fstmdx sp!, {d8, d9, d10}
iWMMXt registers
.save {wr10, wr11} wstrd wr11, [sp, #-8]! wstrd wr10, [sp, #-8]! or .save wr11 wstrd wr11, [sp, #-8]! .save wr10 wstrd wr10, [sp, #-8]!
.setfp
fpreg,
spreg [, #
offset]
The syntax of this directive is the same as the add
or mov
instruction used to set the frame pointer. spreg must be either
sp
or mentioned in a previous .movsp
directive.
.movsp ip mov ip, sp ... .setfp fp, ip, #4 add fp, ip, #4
.secrel32
expression [,
expression]*
.syntax [unified | divided]
.thumb
.thumb_func
.thumb
This directive is not neccessary when generating EABI objects. On these targets the encoding is implicit when generating Thumb code.
.thumb_set
.set
directive in that it
creates a symbol which is an alias for another symbol (possibly not yet
defined). This directive also has the added property in that it marks
the aliased symbol as being a thumb function entry point, in the same
way that the .thumb_func
directive does.
.tlsdescseq
tls-variable.unreq
alias-namereq
, dn
or qn
directives. For example:
foo .req r0 .unreq foo
An error occurs if the name is undefined. Note - this pseudo op can be used to delete builtin in register name aliases (eg 'r0'). This should only be done if it is really necessary.
.unwind_raw
offset,
byte1, ...
For example .unwind_raw 4, 0xb1, 0x01
is equivalent to
.save {r0}
.vsave
vfp-reglist
VFP registers
.vsave {d8, d9, d10} fstmdd sp!, {d8, d9, d10}
VFPv3 registers
.vsave {d15, d16, d17} vstm sp!, {d15, d16, d17}
Since FLDMX and FSTMX are now deprecated, this directive should be
used in favour of .save
for saving VFP registers for ARMv6 and above.