[llvm] [AMDGPU][MC] Don't crash on decoding invalid SOP1 ssrc0 operands. (PR #130302)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 17:10:04 PST 2025


================
@@ -2548,6 +2548,9 @@
 # GFX11: s_setpc_b64 vcc                         ; encoding: [0x6a,0x48,0x80,0xbe]
 0x6a,0x48,0x80,0xbe
 
+# GFX11: s_setpc_b64 -11/*Invalid immediate*/    ; encoding: [0xf5,0x48,0x80,0xbe]
+0xcb,0x48,0xf5,0xbe
----------------
kosarev wrote:

Yes, it's just SReg_64. I hope to have to time to check other cases more thoroughly, but we need this s_setpc fix as a matter of urgency.

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


More information about the llvm-commits mailing list