HomePhabricator

[MC][ARM] Reject Thumb "ror rX, #0"

Authored by rprichard on May 19 2021, 3:05 PM.

Description

[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

Details