[llvm] [AMDGPU] Ensure positive InstOffset for buffer operations (PR #145504)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 05:15:37 PDT 2025
================
@@ -803,6 +803,21 @@ DecodeStatus AMDGPUDisassembler::getInstruction(MCInst &MI, uint64_t &Size,
}
}
+ // Validate buffer offset for GFX12+ - must be positive
+ if ((MCII->get(MI.getOpcode()).TSFlags &
+ (SIInstrFlags::MTBUF | SIInstrFlags::MUBUF)) &&
+ AMDGPU::isGFX12Plus(STI)) {
----------------
arsenm wrote:
Avoid generation checks
https://github.com/llvm/llvm-project/pull/145504
More information about the llvm-commits
mailing list