[all-commits] [llvm/llvm-project] 65d026: [MC][ARM] Reject Thumb "ror rX, #0"

Ryan Prichard via All-commits all-commits at lists.llvm.org
Wed May 19 15:06:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65d0264ba2e5770cceeda7ff8c3509c626cf0109
      https://github.com/llvm/llvm-project/commit/65d0264ba2e5770cceeda7ff8c3509c626cf0109
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2021-05-19 (Wed, 19 May 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMInstrThumb2.td
    M llvm/test/MC/ARM/thumb2-diagnostics.s

  Log Message:
  -----------
  [MC][ARM] Reject Thumb "ror rX, #0"

The ROR instruction can only handle immediates between 1 and 31. The
would-be encoding for ROR #0 is actually the RRX instruction.

Reviewed By: nickdesaulniers

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




More information about the All-commits mailing list