[PATCH] D139442: AMDGPU/MC: Make VReg and VISrc decoders more strict

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 09:32:54 PST 2022


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: piotr, dp.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

These are operands that use 9 bit src operand encoding
but still don't allow sgprs and inline immediates.
Report decoding fail when operands are invalid values.


https://reviews.llvm.org/D139442

Files:
  llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
  llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
  llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
  llvm/lib/Target/AMDGPU/SIRegisterInfo.td
  llvm/lib/Target/AMDGPU/VOP3PInstructions.td
  llvm/test/MC/Disassembler/AMDGPU/decode-err.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139442.480527.patch
Type: text/x-patch
Size: 15259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221206/45c0931b/attachment.bin>


More information about the llvm-commits mailing list