-
Bug
-
Resolution: Won't Fix
-
Medium
-
Code Generation Tools
-
CODEGEN-7992
-
-
default
-
The proper syntax is SUB SP, SP, #4.
-
User error, not a correct assembly instruction
The attached assembly code file has these instructions in it ...
sub sp,#12 ; error add sp,#-12 ; works
Build it ...
% armcl --code_state=16 -mv5e tibug.asm "tibug.asm", ERROR! at line 5: [E0004] Register Rd cannot be a hi register sub sp,#12 ; error 1 Assembly Error, No Assembly Warnings Errors in Source - Assembler Aborted >> Compilation failure
But the ARM documentation shows an example of a sub sp, #<constant> instruction.