[PATCH] D125820: [AMDGPU] gfx11 LDSDIR instructions MC support

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 11:55:19 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:8821-8831
+  if (!parseExpr(Imm)) {
+    // The operand is optional, if not present default to 0
+    Imm = 0;
+  }
+
+  if (!isUInt<4>(Imm)) {
+    Error(S, "expected a 4-bit value");
----------------
Missing parse error tests


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125820/new/

https://reviews.llvm.org/D125820



More information about the llvm-commits mailing list