Compiling for ARMv5TE with UAL syntax does not Work. This seems to be an old bug (since 4.9.6): .thumb bne.n dd nop dd: This code compiles fine with IAR and GCC and should also with CGT with --ual, but doesn't.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Compiling for ARMv5TE with UAL syntax does not Work. This seems to be an old bug (since 4.9.6): .thumb bne.n dd nop dd: This code compiles fine with IAR and GCC and should also with CGT with --ual, but doesn't.
RVDS 5.01 does not accept it for --cpu=5TE:
Error: A1617E: Specified width is not supported by the current instruction set.
If you disassemble the object file generated by IAR and GCC, what is the encoding of the instruction? For Cortex-A8, for instance, the TI toolset gives:
000000: .thumb 000000: D100 BNE 0x00000004 000002: BF00 NOP 000004: DD: 000004: BF00 NOP
GCC: ------- .syntax unified .text .thumb bne.n dd nop dd: nop armv5te 00000000 : 0: d100 bne.n 4
AREA text,CODE THUMB bne.n dd nop dd nop ENDResult:
** Section #1 ER_RO ** 0x00008000: BNE {pc}+4 ; 0x8004 0x00008002: MOV r8,r8 0x00008004: MOV r8,r8So it is only CGT AFAICS which does not support UAL correctly!
Cheers,
Thank you for submitting a test case. I can reproduce the problem. I filed SDSCM00048976 in the SDOWP system to have this addressed. Feel free to follow it with the SDOWP link below in my signature.
Thanks and regards,
-George