[RISCV] Add isel patterns for SH*ADD(.UW)
authorCraig Topper <craig.topper@sifive.com>
Fri, 22 Jan 2021 20:54:02 +0000 (12:54 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 22 Jan 2021 21:28:41 +0000 (13:28 -0800)
commit095e245e164584b5de3c2938452b48d1f8ba4dda
tree124b16b21ec96859bbeeec523978cc231cedd9ba
parent99a0aa07e9f4fa239b7927ede1847cfc78b16803
[RISCV] Add isel patterns for SH*ADD(.UW)

This adds an initial set of patterns for these instructions. Its
more complicated that I would like for the sh*add.uw instructions
because there is no guaranteed canonicalization for shl/and with
constants.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D95106
llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/rv32Zba.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rv64Zba.ll