[RISCV] Use gorciw for i32 orc.b intrinsic when Zbp is enabled.
authorCraig Topper <craig.topper@sifive.com>
Sun, 4 Apr 2021 22:40:41 +0000 (15:40 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 5 Apr 2021 00:14:28 +0000 (17:14 -0700)
commit4708a05da03038271a1a2c1cbdfe78aebfaa7afc
treef534e712d00daa0178a48d8af613ee609c0dfbfa
parentec575e3b0a462ff7a3d23d0f39a22147606050de
[RISCV] Use gorciw for i32 orc.b intrinsic when Zbp is enabled.

The W version of orc.b does not exist in Zbp so we need to use
gorci encoding. If we have Zbp, we can use gorciw which can avoid a
sext.w in some cases.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rv64zbb-intrinsic.ll