File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/lib/Target/AMDGPU/AsmParser Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4626,9 +4626,10 @@ bool AMDGPUAsmParser::validateOpSel(const MCInst &Inst) {
4626
4626
4627
4627
uint64_t TSFlags = MII.get (Opc).TSFlags ;
4628
4628
4629
- // For VOP3P DOT instructions, op_sel must be 0 if present, and op_sel_hi
4630
- // cannot be present.
4631
- if ((TSFlags & SIInstrFlags::IsDOT) && (TSFlags & SIInstrFlags::VOP3P)) {
4629
+ // For DOT instructions on GFX940, or VOP3P DOT instructions on all targets,
4630
+ // op_sel must be 0 if present, and op_sel_hi cannot be present.
4631
+ if ((TSFlags & SIInstrFlags::IsDOT) &&
4632
+ (isGFX940 () || (TSFlags & SIInstrFlags::VOP3P))) {
4632
4633
int OpSelIdx = AMDGPU::getNamedOperandIdx (Opc, AMDGPU::OpName::op_sel);
4633
4634
if (OpSelIdx != -1 ) {
4634
4635
if (Inst.getOperand (OpSelIdx).getImm () != 0 )
You can’t perform that action at this time.
0 commit comments