[llvm] [AMDGPU][True16][MC] validate op_sel and .l/.h syntax (PR #123250)

Brox Chen via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 08:52:10 PST 2025


================
@@ -5132,6 +5171,11 @@ bool AMDGPUAsmParser::validateInstruction(const MCInst &Inst,
     Error(getRegLoc(LDS_DIRECT, Operands), *ErrMsg);
     return false;
   }
+  if (!validateTrue16OpSel(Inst)) {
+    Error(getImmLoc(AMDGPUOperand::ImmTyOpSel, Operands),
+          "op_sel operand conflicts with 16-bit operand suffix");
----------------
broxigarchen wrote:

added a test file

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


More information about the llvm-commits mailing list