[llvm] [RISCV] Fix Branch/Jump Immediates (PR #120658)

Sudharsan Veeravalli via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 20:15:40 PST 2024


================
@@ -943,7 +943,8 @@ struct RISCVOperand final : public MCParsedAsmOperand {
     RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None;
     int64_t Imm;
     bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
-    return IsConstantImm && isShiftedInt<7, 5>(Imm) &&
+    return IsConstantImm &&
----------------
svs-quic wrote:

This function seems to be used in RISCVInstrInfoZicbo.td for a non branch/jump instruction. Do you maybe want to make this a separate change? 

https://github.com/llvm/llvm-project/pull/120658


More information about the llvm-commits mailing list