[PATCH] D88211: [AMDGPU][MC] Added detection of unsupported instructions

Dmitry Preobrazhensky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 03:30:04 PDT 2020


dp created this revision.
Herald added subscribers: llvm-commits, kerbowa, jfb, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
dp requested review of this revision.
Herald added a subscriber: wdng.

This change implements identification of unsupported instructions and improves errors reporting.

Before this change assembler was unable to identify unsupported instructions reliably.
This resulted in an "invalid operand" message instead of an "unsupported opcode".

Partially fixes bug 42590 <https://bugs.llvm.org/show_bug.cgi?id=42590>.


https://reviews.llvm.org/D88211

Files:
  llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
  llvm/test/MC/AMDGPU/dpp-err.s
  llvm/test/MC/AMDGPU/ds.s
  llvm/test/MC/AMDGPU/flat-global.s
  llvm/test/MC/AMDGPU/flat-scratch-instructions.s
  llvm/test/MC/AMDGPU/flat.s
  llvm/test/MC/AMDGPU/fma-mix.s
  llvm/test/MC/AMDGPU/gfx1011_err.s
  llvm/test/MC/AMDGPU/gfx1030_err.s
  llvm/test/MC/AMDGPU/gfx10_asm_err.s
  llvm/test/MC/AMDGPU/gfx10_unsupported.s
  llvm/test/MC/AMDGPU/gfx7_unsupported.s
  llvm/test/MC/AMDGPU/gfx8_unsupported.s
  llvm/test/MC/AMDGPU/gfx9_unsupported.s
  llvm/test/MC/AMDGPU/invalid-instructions-spellcheck.s
  llvm/test/MC/AMDGPU/literals.s
  llvm/test/MC/AMDGPU/mad-mix.s
  llvm/test/MC/AMDGPU/mai-err.s
  llvm/test/MC/AMDGPU/mubuf-gfx9.s
  llvm/test/MC/AMDGPU/mubuf.s
  llvm/test/MC/AMDGPU/out-of-range-registers.s
  llvm/test/MC/AMDGPU/smem.s
  llvm/test/MC/AMDGPU/sop1.s
  llvm/test/MC/AMDGPU/sopc.s
  llvm/test/MC/AMDGPU/sopk.s
  llvm/test/MC/AMDGPU/sopp.s
  llvm/test/MC/AMDGPU/vop1-gfx9-err.s
  llvm/test/MC/AMDGPU/vop2.s
  llvm/test/MC/AMDGPU/vop3-errs.s
  llvm/test/MC/AMDGPU/vop3-gfx9.s
  llvm/test/MC/AMDGPU/vop3.s
  llvm/test/MC/AMDGPU/vop_dpp.s
  llvm/test/MC/AMDGPU/vop_sdwa.s
  llvm/test/MC/AMDGPU/wave32.s
  llvm/test/MC/AMDGPU/xdl-insts-err.s



More information about the llvm-commits mailing list