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

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 03:22:33 PST 2021


DavidSpickett accepted this revision.
DavidSpickett added a comment.
This revision is now accepted and ready to land.

LGTM with the one comment added.



================
Comment at: llvm/lib/Target/ARM/ARMInstrThumb2.td:4147
 }
+def : t2InstAlias<"movs${p}\tpc, lr", (t2SUBS_PC_LR 0, pred:$p)>;
+def : t2InstAlias<"movs${p}.w\tpc, lr", (t2SUBS_PC_LR 0, pred:$p)>;
----------------
Here please cite the armarmv7:
```
B9.3.19 SUBS PC, LR (Thumb)
In the Thumb instruction set, MOVS{<c>}{<q>} PC, LR is a pseudo-instruction for SUBS{<c>}{<q>} PC, LR, #0.
```



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96304/new/

https://reviews.llvm.org/D96304



More information about the llvm-commits mailing list