Lines Matching refs:index

308   for (unsigned index = 0; index < 256; ++index) {
309 if (decision.instructionIDs[index] != decision.instructionIDs[0])
312 if (((index & 0xc0) == 0xc0) &&
313 (decision.instructionIDs[index] != decision.instructionIDs[0xc0]))
316 if (((index & 0xc0) != 0xc0) &&
317 (decision.instructionIDs[index] != decision.instructionIDs[0x00]))
320 if (((index & 0xc0) == 0xc0) &&
321 (decision.instructionIDs[index] != decision.instructionIDs[index&0xf8]))
324 if (((index & 0xc0) != 0xc0) &&
325 (decision.instructionIDs[index] != decision.instructionIDs[index&0x38]))
428 for (unsigned index = 0; index < 64; index += 8)
429 ModRMDecision.push_back(decision.instructionIDs[index]);
430 for (unsigned index = 0xc0; index < 256; index += 8)
431 ModRMDecision.push_back(decision.instructionIDs[index]);
434 for (unsigned index = 0; index < 64; index += 8)
435 ModRMDecision.push_back(decision.instructionIDs[index]);
436 for (unsigned index = 0xc0; index < 256; ++index)
437 ModRMDecision.push_back(decision.instructionIDs[index]);
440 for (unsigned index = 0; index < 256; ++index)
441 ModRMDecision.push_back(decision.instructionIDs[index]);
489 // We assume that the index can fit into uint16_t.
505 for (unsigned index = 0; index < 256; ++index) {
508 o2 << "/* 0x" << format("%02hhx", index) << " */" << "\n";
511 decision.modRMDecisions[index]);
513 if (index < 255)
535 for (unsigned index = 0; index < IC_max; ++index) {
537 o2 << stringForContext((InstructionContext)index);
542 decision.opcodeDecisions[index]);
544 if (index + 1 < IC_max)
597 for (unsigned index = 0; index < NumInstructions; ++index) {
598 o.indent(i * 2) << "{ /* " << index << " */" << "\n";
602 (ModifierType)InstructionSpecifiers[index].modifierType);
606 o << format("%02hhx", (uint16_t)InstructionSpecifiers[index].modifierBase);
613 stringForOperandEncoding((OperandEncoding)InstructionSpecifiers[index]
616 stringForOperandType((OperandType)InstructionSpecifiers[index]
622 o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */";
628 if (index + 1 < NumInstructions)
643 for (unsigned index = 0; index < 256; ++index) {
646 if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_OPSIZE))
648 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_XD))
650 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_XS))
652 else if ((index & ATTR_VEXL) && (index & ATTR_REXW))
654 else if ((index & ATTR_VEXL) && (index & ATTR_OPSIZE))
656 else if ((index & ATTR_VEXL) && (index & ATTR_XD))
658 else if ((index & ATTR_VEXL) && (index & ATTR_XS))
660 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_OPSIZE))
662 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XD))
664 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XS))
666 else if (index & ATTR_VEXL)
668 else if ((index & ATTR_VEX) && (index & ATTR_REXW))
670 else if ((index & ATTR_VEX) && (index & ATTR_OPSIZE))
672 else if ((index & ATTR_VEX) && (index & ATTR_XD))
674 else if ((index & ATTR_VEX) && (index & ATTR_XS))
676 else if (index & ATTR_VEX)
678 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS))
680 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD))
682 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) &&
683 (index & ATTR_OPSIZE))
685 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_OPSIZE))
687 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_OPSIZE))
689 else if ((index & ATTR_64BIT) && (index & ATTR_XS))
691 else if ((index & ATTR_64BIT) && (index & ATTR_XD))
693 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE))
695 else if ((index & ATTR_64BIT) && (index & ATTR_ADSIZE))
697 else if ((index & ATTR_64BIT) && (index & ATTR_REXW))
699 else if ((index & ATTR_64BIT))
701 else if ((index & ATTR_XS) && (index & ATTR_OPSIZE))
703 else if ((index & ATTR_XD) && (index & ATTR_OPSIZE))
705 else if (index & ATTR_XS)
707 else if (index & ATTR_XD)
709 else if (index & ATTR_OPSIZE)
711 else if (index & ATTR_ADSIZE)
716 if (index < 255)
721 o << " /* " << index << " */";
785 for (unsigned index = 0; index < 256; ++index) {
786 if (filter.accepts(index)) {
787 if (decision.instructionIDs[index] == uid)
790 if (decision.instructionIDs[index] != 0) {
794 InstructionSpecifiers[decision.instructionIDs[index]];
813 errs() << "ModRM " << index << "\n";
820 decision.instructionIDs[index] = uid;
834 for (unsigned index = 0; index < IC_max; ++index) {
835 if (is32bit && inheritsFrom((InstructionContext)index, IC_64BIT))
838 if (inheritsFrom((InstructionContext)index,
840 setTableFields(decision.opcodeDecisions[index].modRMDecisions[opcode],