[llvm] [RISCV][llvm] Preliminary P extension codegen support (PR #162668)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 30 10:13:49 PDT 2025
================
@@ -79,6 +79,32 @@ static void generateInstSeqImpl(int64_t Val, const MCSubtargetInfo &STI,
}
}
+ if (STI.hasFeature(RISCV::FeatureStdExtP)) {
+ // Check if the immediate is packed i8 or i10
+ int32_t Bit63To32 = Val >> 32;
----------------
4vtomat wrote:
Oh I think it doesn't matter since I used `int32_t`
https://github.com/llvm/llvm-project/pull/162668
More information about the llvm-commits
mailing list