-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Code Generation Tools
-
CODEGEN-10933
-
ARM_20.2.7.LTS
-
ARM_20.2.8.LTS*
-
default
-
The attached source file has these lines ...
void test()
{
__asm(" add r1, pc, #0x4");
}
Build it ...
% armcl -mv7r5 --code_state=16 file.c
"C:\Users\name\AppData\Local\Temp\{949B409A-19B8-45F4-B34A-0521581E1A71}", ERROR! at line 47:
[E0004]
Specifying R15 as an operand is illegal
add r1, pc, #0x4
1 Assembly Error, No Assembly Warnings
Errors in Source - Assembler Aborted
>> Compilation failure
Use of --code_state=16 (Thumb mode) is required for the problem to occur.