Lines Matching refs:PatchedName

3203   StringRef PatchedName = Name;  in ParseInstruction()  local
3207 (PatchedName == "jmp" || PatchedName == "jc" || PatchedName == "jnc" || in ParseInstruction()
3208 PatchedName == "jcxz" || PatchedName == "jecxz" || in ParseInstruction()
3209 (PatchedName.starts_with("j") && in ParseInstruction()
3210 ParseConditionCode(PatchedName.substr(1)) != X86::COND_INVALID))) { in ParseInstruction()
3227 if (PatchedName.starts_with("set") && PatchedName.ends_with("b") && in ParseInstruction()
3228 PatchedName != "setb" && PatchedName != "setnb") in ParseInstruction()
3229 PatchedName = PatchedName.substr(0, Name.size()-1); in ParseInstruction()
3234 if ((PatchedName.starts_with("cmp") || PatchedName.starts_with("vcmp")) && in ParseInstruction()
3235 (PatchedName.ends_with("ss") || PatchedName.ends_with("sd") || in ParseInstruction()
3236 PatchedName.ends_with("sh") || PatchedName.ends_with("ph") || in ParseInstruction()
3237 PatchedName.ends_with("ps") || PatchedName.ends_with("pd"))) { in ParseInstruction()
3238 bool IsVCMP = PatchedName[0] == 'v'; in ParseInstruction()
3241 PatchedName.slice(CCIdx, PatchedName.size() - 2)) in ParseInstruction()
3291 (IsVCMP || PatchedName.back() != 'h')) { in ParseInstruction()
3292 if (PatchedName.ends_with("ss")) in ParseInstruction()
3293 PatchedName = IsVCMP ? "vcmpss" : "cmpss"; in ParseInstruction()
3294 else if (PatchedName.ends_with("sd")) in ParseInstruction()
3295 PatchedName = IsVCMP ? "vcmpsd" : "cmpsd"; in ParseInstruction()
3296 else if (PatchedName.ends_with("ps")) in ParseInstruction()
3297 PatchedName = IsVCMP ? "vcmpps" : "cmpps"; in ParseInstruction()
3298 else if (PatchedName.ends_with("pd")) in ParseInstruction()
3299 PatchedName = IsVCMP ? "vcmppd" : "cmppd"; in ParseInstruction()
3300 else if (PatchedName.ends_with("sh")) in ParseInstruction()
3301 PatchedName = "vcmpsh"; in ParseInstruction()
3302 else if (PatchedName.ends_with("ph")) in ParseInstruction()
3303 PatchedName = "vcmpph"; in ParseInstruction()
3312 if (PatchedName.starts_with("vpcmp") && in ParseInstruction()
3313 (PatchedName.back() == 'b' || PatchedName.back() == 'w' || in ParseInstruction()
3314 PatchedName.back() == 'd' || PatchedName.back() == 'q')) { in ParseInstruction()
3315 unsigned SuffixSize = PatchedName.drop_back().back() == 'u' ? 2 : 1; in ParseInstruction()
3317 PatchedName.slice(5, PatchedName.size() - SuffixSize)) in ParseInstruction()
3328 switch (PatchedName.back()) { in ParseInstruction()
3330 case 'b': PatchedName = SuffixSize == 2 ? "vpcmpub" : "vpcmpb"; break; in ParseInstruction()
3331 case 'w': PatchedName = SuffixSize == 2 ? "vpcmpuw" : "vpcmpw"; break; in ParseInstruction()
3332 case 'd': PatchedName = SuffixSize == 2 ? "vpcmpud" : "vpcmpd"; break; in ParseInstruction()
3333 case 'q': PatchedName = SuffixSize == 2 ? "vpcmpuq" : "vpcmpq"; break; in ParseInstruction()
3341 if (PatchedName.starts_with("vpcom") && in ParseInstruction()
3342 (PatchedName.back() == 'b' || PatchedName.back() == 'w' || in ParseInstruction()
3343 PatchedName.back() == 'd' || PatchedName.back() == 'q')) { in ParseInstruction()
3344 unsigned SuffixSize = PatchedName.drop_back().back() == 'u' ? 2 : 1; in ParseInstruction()
3346 PatchedName.slice(5, PatchedName.size() - SuffixSize)) in ParseInstruction()
3357 switch (PatchedName.back()) { in ParseInstruction()
3359 case 'b': PatchedName = SuffixSize == 2 ? "vpcomub" : "vpcomb"; break; in ParseInstruction()
3360 case 'w': PatchedName = SuffixSize == 2 ? "vpcomuw" : "vpcomw"; break; in ParseInstruction()
3361 case 'd': PatchedName = SuffixSize == 2 ? "vpcomud" : "vpcomd"; break; in ParseInstruction()
3362 case 'q': PatchedName = SuffixSize == 2 ? "vpcomuq" : "vpcomq"; break; in ParseInstruction()
3424 PatchedName = Name; in ParseInstruction()
3427 if (PatchedName == "data16" && is16BitMode()) { in ParseInstruction()
3430 if (PatchedName == "data32") { in ParseInstruction()
3436 PatchedName = "data16"; in ParseInstruction()
3449 PatchedName = Name; in ParseInstruction()
3455 Operands.push_back(X86Operand::CreateToken(PatchedName, NameLoc)); in ParseInstruction()