[llvm] [RISCV] Implement Intrinsics Support for XCValu Extension in CV32E40P (PR #85603)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 13:44:48 PDT 2024
================
@@ -716,6 +718,15 @@ def CV_HI5: SDNodeXForm<imm, [{
N->getValueType(0));
}]>;
+def powerOf2 : ImmLeaf<XLenVT, [{ return isPowerOf2_32(Imm); }]>;
+def powerOf2Minus1 : ImmLeaf<XLenVT, [{ return isPowerOf2_32(Imm+1); }]>;
+def negativePowerOf2 : ImmLeaf<XLenVT, [{ return isPowerOf2_32(-Imm); }]>;
----------------
topperc wrote:
negativePowerOf2 appears to be unused in this patch.
https://github.com/llvm/llvm-project/pull/85603
More information about the llvm-commits
mailing list