[llvm] [AMDGPU] Add lit64 machine verifier (PR #196457)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 03:26:10 PDT 2026
================
@@ -5289,6 +5285,19 @@ bool SIInstrInfo::verifyInstruction(const MachineInstr &MI,
}
break;
}
+ case AMDGPU::OPERAND_REG_IMM_FP64:
+ case AMDGPU::OPERAND_REG_IMM_INT64:
+ case AMDGPU::OPERAND_REG_IMM_V2INT32:
+ case AMDGPU::OPERAND_REG_IMM_V2FP32:
+ if (ST.has64BitLiterals() && Desc.getSize() != 4 && MO.isImm() &&
----------------
jayfoad wrote:
Is it worth checking this on non-has64BitLiterals targets too?
```suggestion
if ((!ST.has64BitLiterals() || Desc.getSize() != 4) && MO.isImm() &&
```
https://github.com/llvm/llvm-project/pull/196457
More information about the llvm-commits
mailing list