Migration and Compatibility GuidePreface Configuration and Support Information Migrating from Arm Compiler 5 to Arm Compiler 6 Migrating from armcc to armclang Compiler Source Code Compatibility Migrating from armasm to the armclang Integrated A Migration of assembler command-line options from a Overview of differences between armasm and GNU syn Comments Labels Numeric local labels Functions Sections Symbol naming rules Numeric literals Operators Alignment PC-relative addressing A32 and T32 instruction substitutions A32 and T32 pseudo-instructions Conditional directives Data definition directives Instruction set directives Miscellaneous directives Symbol definition directives Migration of armasm macros to integrated assembler Changes Between Different Versions of Arm Compiler Code Examples Licenses
5.9 Numeric literals
Implicit shift operations
GNU syntax assembly expects immediate values to be presented as
encoded. The instruction
For example, the following are equivalent:
ADD r1, #0xAF ADD r1, #&AF
GNU syntax assembly only supports the "0x" prefix for specifying hexadecimal literals. Convert any "&" prefixes to "0x".
GNU syntax assembly does not support the
For example, you could convert:
ADD r1, #2_1101
ADD r1, #13
ADD r1, #0xD
of your data.