[all-commits] [llvm/llvm-project] 68945a: [Thumb2] support `movs pc, lr` alias for `subs pc, ...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Wed Feb 10 11:01:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68945a8686708c6e4c74b9aeb231b8c4e1731181
      https://github.com/llvm/llvm-project/commit/68945a8686708c6e4c74b9aeb231b8c4e1731181
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMInstrThumb2.td
    M llvm/test/MC/ARM/lsl-zero-errors.s
    M llvm/test/MC/ARM/thumb-mov.s

  Log Message:
  -----------
  [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: Nick Desaulniers <ndesaulniers at google.com>

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D96304




More information about the All-commits mailing list