File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
llvm/lib/Target/AMDGPU/Disassembler Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2303,7 +2303,10 @@ Expected<bool> AMDGPUDisassembler::decodeCOMPUTE_PGM_RSRC1(
23032303 KdStream << Indent << " .amdhsa_reserve_vcc " << 0 << ' \n ' ;
23042304 if (!hasArchitectedFlatScratch ())
23052305 KdStream << Indent << " .amdhsa_reserve_flat_scratch " << 0 << ' \n ' ;
2306- KdStream << Indent << " .amdhsa_reserve_xnack_mask " << 0 << ' \n ' ;
2306+ bool ReservedXnackMask = STI.hasFeature (AMDGPU::FeatureXNACK);
2307+ assert (!ReservedXnackMask || STI.hasFeature (AMDGPU::FeatureSupportsXNACK));
2308+ KdStream << Indent << " .amdhsa_reserve_xnack_mask " << ReservedXnackMask
2309+ << ' \n ' ;
23072310 KdStream << Indent << " .amdhsa_next_free_sgpr " << NextFreeSGPR << " \n " ;
23082311
23092312 CHECK_RESERVED_BITS (COMPUTE_PGM_RSRC1_PRIORITY);
You can’t perform that action at this time.
0 commit comments