Skip to content
Commit 68945a86 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[Thumb2] support `movs pc, lr` alias for `subs pc, lr, #0`/`eret`



This is used by the Linux kernel built with CONFIG_THUMB2_KERNEL.

Because different operands are not permitted to `movs`, the diagnostics now provide multiple suggestions along the lines of using a non-pc destination operand or lr source operand.

Forked from D95586.

Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D96304
parent 9680ea5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment