打印

Is a MOV using high registers (R8-R15) possible

[复制链接]
160|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
スモモ|  楼主 | 2018-9-9 07:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
The ARMv6-M Architecture Reference Manual section \"A6.7.40 MOV (register)\" on page A6-140 states that the T1 encoding of the MOV instruction is only available on the ARMv6-M architecture if both the source and destination register are from R0-R7. However arm-none-eabi-as assembles the instruction \"MOV r15, r14\" without any problems:
$ echo \'mov r15,r14\' | arm-none-eabi-as -march=armv6-m
$ arm-none-eabi-objdump -d a.out
...
0: 46f7 mov pc, lr
Also, this answer on stackoverflow states that it is possible to acces the high registers on the ARMv6-M architecture.
Could this be a mistake in the reference manual? Or am I reading it wrong?

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

458

主题

484

帖子

1

粉丝