ARM Cortex-R:q5: ldrbne and ldrbeq give "Error: bad instruction" despite being valid

Asked by Kit Sczudlo

When I attempt to use gcc to compile a *.S file containing the instructions ldrbne or ldrbeq it will not compile.

As an example:
tst.S:
.text
.arm

.global _start
_start:
    ldrbne r12, [lr, #-4]
    ldrbeq r12, [lr, #-8]

arm-none-eabi-gcc -march=armv7-r -mfpu=vfpv3-d16 -mfloat-abi=hard -Wall -Werror -Wextra -g

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Kit Sczudlo
Solved:
Last query:
Last reply:
Revision history for this message
Kit Sczudlo (sczudlow) said :
#1

Ack, I accidentally posted this partway through typing, please see: https://answers.launchpad.net/gcc-arm-embedded/+question/272094