[llvm] [AMDGPU] Ensure positive InstOffset for buffer operations (PR #145504)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jun 24 19:52: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:
The property is not gfx12+, the property is this specific opcode supports the offset or not.
https://github.com/llvm/llvm-project/pull/145504
    
    
More information about the llvm-commits
mailing list