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
- Assignee:
- No assignee Edit question
- Solved by:
- Kit Sczudlo
- Solved:
- Last query:
- Last reply:
To post a message you must log in.