HomePhabricator

[RISCV] Add InstAlias for Zbb Zbp and Zbs extension

Authored by LevyHsu on Apr 8 2021, 11:40 AM.

Description

[RISCV] Add InstAlias for Zbb Zbp and Zbs extension

Add InstAlias that allows the last operand to be an imm for following instructions:

  1. Zbb or Zbp:
    • ror
    • rorw (RV64 Only)
  1. Zbs
    • best
    • bclr
    • binv
    • bext

Reviewed By: craig.topper, jrtc27

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

Details