string GetDestinationName(InstructionToken instruction) { var resultModifier = instruction.GetDestinationResultModifier(); int destIndex = instruction.GetDestinationParamIndex(); string registerName = instruction.GetParamRegisterName(destIndex); const int registerLength = 4; string writeMaskName = instruction.GetDestinationWriteMaskName(registerLength, false); string destinationName = $"{registerName}{writeMaskName}"; if (resultModifier != ResultModifier.None) { //destinationName += "TODO:Modifier!!!"; } return(destinationName); }
private string GetInstructionModifier(InstructionToken instruction) { string result = ""; var modifer = instruction.GetDestinationResultModifier(); if (modifer.HasFlag(ResultModifier.Saturate)) { result += "_sat"; } if (modifer.HasFlag(ResultModifier.PartialPrecision)) { result += "_pp"; } if (modifer.HasFlag(ResultModifier.Centroid)) { result += "_centroid"; } return(result); }