I am writing an ARM assembly code. In it there is a snippet:
cmp r3, r2
ldrbcc r6, [r3], #1
I want to express if r3 is less than r2, then load [r3] to register r6. But when I compile it with linaro toolchain(version 13.04):
arm-linux-gnueabihf-as -march=armv7-a -mcpu=cortex-a9 test.s -o test
The compiler outputs:
Error: bad instruction `ldrbcc r6,[r3],#1'
I can't figure it out. Anyone can help me? Thanks.