Lines Matching refs:PatchedName

3160   StringRef PatchedName = Name;  in ParseInstruction()  local
3164 (PatchedName == "jmp" || PatchedName == "jc" || PatchedName == "jnc" || in ParseInstruction()
3165 PatchedName == "jcxz" || PatchedName == "jecxz" || in ParseInstruction()
3166 (PatchedName.startswith("j") && in ParseInstruction()
3167 ParseConditionCode(PatchedName.substr(1)) != X86::COND_INVALID))) { in ParseInstruction()
3184 if (PatchedName.startswith("set") && PatchedName.endswith("b") && in ParseInstruction()
3185 PatchedName != "setb" && PatchedName != "setnb") in ParseInstruction()
3186 PatchedName = PatchedName.substr(0, Name.size()-1); in ParseInstruction()
3191 if ((PatchedName.startswith("cmp") || PatchedName.startswith("vcmp")) && in ParseInstruction()
3192 (PatchedName.endswith("ss") || PatchedName.endswith("sd") || in ParseInstruction()
3193 PatchedName.endswith("sh") || PatchedName.endswith("ph") || in ParseInstruction()
3194 PatchedName.endswith("ps") || PatchedName.endswith("pd"))) { in ParseInstruction()
3195 bool IsVCMP = PatchedName[0] == 'v'; in ParseInstruction()
3198 PatchedName.slice(CCIdx, PatchedName.size() - 2)) in ParseInstruction()
3248 (IsVCMP || PatchedName.back() != 'h')) { in ParseInstruction()
3249 if (PatchedName.endswith("ss")) in ParseInstruction()
3250 PatchedName = IsVCMP ? "vcmpss" : "cmpss"; in ParseInstruction()
3251 else if (PatchedName.endswith("sd")) in ParseInstruction()
3252 PatchedName = IsVCMP ? "vcmpsd" : "cmpsd"; in ParseInstruction()
3253 else if (PatchedName.endswith("ps")) in ParseInstruction()
3254 PatchedName = IsVCMP ? "vcmpps" : "cmpps"; in ParseInstruction()
3255 else if (PatchedName.endswith("pd")) in ParseInstruction()
3256 PatchedName = IsVCMP ? "vcmppd" : "cmppd"; in ParseInstruction()
3257 else if (PatchedName.endswith("sh")) in ParseInstruction()
3258 PatchedName = "vcmpsh"; in ParseInstruction()
3259 else if (PatchedName.endswith("ph")) in ParseInstruction()
3260 PatchedName = "vcmpph"; in ParseInstruction()
3269 if (PatchedName.startswith("vpcmp") && in ParseInstruction()
3270 (PatchedName.back() == 'b' || PatchedName.back() == 'w' || in ParseInstruction()
3271 PatchedName.back() == 'd' || PatchedName.back() == 'q')) { in ParseInstruction()
3272 unsigned SuffixSize = PatchedName.drop_back().back() == 'u' ? 2 : 1; in ParseInstruction()
3274 PatchedName.slice(5, PatchedName.size() - SuffixSize)) in ParseInstruction()
3285 switch (PatchedName.back()) { in ParseInstruction()
3287 case 'b': PatchedName = SuffixSize == 2 ? "vpcmpub" : "vpcmpb"; break; in ParseInstruction()
3288 case 'w': PatchedName = SuffixSize == 2 ? "vpcmpuw" : "vpcmpw"; break; in ParseInstruction()
3289 case 'd': PatchedName = SuffixSize == 2 ? "vpcmpud" : "vpcmpd"; break; in ParseInstruction()
3290 case 'q': PatchedName = SuffixSize == 2 ? "vpcmpuq" : "vpcmpq"; break; in ParseInstruction()
3298 if (PatchedName.startswith("vpcom") && in ParseInstruction()
3299 (PatchedName.back() == 'b' || PatchedName.back() == 'w' || in ParseInstruction()
3300 PatchedName.back() == 'd' || PatchedName.back() == 'q')) { in ParseInstruction()
3301 unsigned SuffixSize = PatchedName.drop_back().back() == 'u' ? 2 : 1; in ParseInstruction()
3303 PatchedName.slice(5, PatchedName.size() - SuffixSize)) in ParseInstruction()
3314 switch (PatchedName.back()) { in ParseInstruction()
3316 case 'b': PatchedName = SuffixSize == 2 ? "vpcomub" : "vpcomb"; break; in ParseInstruction()
3317 case 'w': PatchedName = SuffixSize == 2 ? "vpcomuw" : "vpcomw"; break; in ParseInstruction()
3318 case 'd': PatchedName = SuffixSize == 2 ? "vpcomud" : "vpcomd"; break; in ParseInstruction()
3319 case 'q': PatchedName = SuffixSize == 2 ? "vpcomuq" : "vpcomq"; break; in ParseInstruction()
3382 PatchedName = Name; in ParseInstruction()
3385 if (PatchedName == "data16" && is16BitMode()) { in ParseInstruction()
3388 if (PatchedName == "data32") { in ParseInstruction()
3394 PatchedName = "data16"; in ParseInstruction()
3407 PatchedName = Name; in ParseInstruction()
3413 Operands.push_back(X86Operand::CreateToken(PatchedName, NameLoc)); in ParseInstruction()