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(
2303
2303
KdStream << Indent << " .amdhsa_reserve_vcc " << 0 << ' \n ' ;
2304
2304
if (!hasArchitectedFlatScratch ())
2305
2305
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 ' ;
2307
2310
KdStream << Indent << " .amdhsa_next_free_sgpr " << NextFreeSGPR << " \n " ;
2308
2311
2309
2312
CHECK_RESERVED_BITS (COMPUTE_PGM_RSRC1_PRIORITY);
You can’t perform that action at this time.
0 commit comments