Home | History | Annotate | Download | only in disas

Lines Matching refs:prefixes

241 /* Flags for the prefixes for the current instruction.  See below.  */
242 static int prefixes;
263 /* Flags for prefixes which we somehow handled when printing the
267 /* Flags stored in PREFIXES. */
467 #define v_mode 2 /* operand size depends on prefixes */
476 #define dq_mode 11 /* operand size depends on REX prefixes. */
481 #define z_mode 16 /* non-quad operand size depends on prefixes */
3390 prefixes = 0;
3399 /* REX prefixes family. */
3422 prefixes |= PREFIX_REPZ;
3425 prefixes |= PREFIX_REPNZ;
3428 prefixes |= PREFIX_LOCK;
3431 prefixes |= PREFIX_CS;
3434 prefixes |= PREFIX_SS;
3437 prefixes |= PREFIX_DS;
3440 prefixes |= PREFIX_ES;
3443 prefixes |= PREFIX_FS;
3446 prefixes |= PREFIX_GS;
3449 prefixes |= PREFIX_DATA;
3452 prefixes |= PREFIX_ADDR;
3455 /* fwait is really an instruction. If there are prefixes
3458 if (prefixes || rex)
3460 prefixes |= PREFIX_FWAIT;
3464 prefixes = PREFIX_FWAIT;
3508 /* REX prefixes family. */
3567 * (see topic "Redundant prefixes" in the "Differences from 8086"
3762 if (((prefixes & PREFIX_FWAIT)
3769 by other prefixes. Print the first prefix. */
3823 if (!uses_REPZ_prefix && (prefixes & PREFIX_REPZ))
3828 if (!uses_REPNZ_prefix && (prefixes & PREFIX_REPNZ))
3834 if (!uses_LOCK_prefix && (prefixes & PREFIX_LOCK))
3840 if (prefixes & PREFIX_ADDR)
3853 if (!uses_DATA_prefix && (prefixes & PREFIX_DATA))
3900 used_prefixes |= (prefixes & PREFIX_REPZ);
3901 if (prefixes & PREFIX_REPZ)
3907 used_prefixes |= (prefixes & PREFIX_REPNZ);
3908 if (prefixes & PREFIX_REPNZ)
3912 used_prefixes |= (prefixes & PREFIX_DATA);
3913 if (prefixes & PREFIX_DATA)
3943 /* See if any prefixes were not used. If so, print the first one
3947 if ((prefixes & ~used_prefixes) != 0)
4461 if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS))
4467 used_prefixes |= (prefixes & PREFIX_DATA);
4482 used_prefixes |= (prefixes & PREFIX_DATA);
4498 used_prefixes |= (prefixes & PREFIX_ADDR);
4503 if ((prefixes & PREFIX_ADDR) || (sizeflag & SUFFIX_ALWAYS))
4509 used_prefixes |= (prefixes & PREFIX_ADDR);
4520 used_prefixes |= (prefixes & PREFIX_DATA);
4525 if ((prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_CS
4526 || (prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_DS)
4528 used_prefixes |= prefixes & (PREFIX_CS | PREFIX_DS);
4531 if (prefixes & PREFIX_DS)
4565 if ((prefixes & PREFIX_FWAIT) == 0)
4579 used_prefixes |= (prefixes & PREFIX_DATA);
4593 if ((prefixes & PREFIX_DATA)
4607 used_prefixes |= (prefixes & PREFIX_DATA);
4635 used_prefixes |= (prefixes & PREFIX_DATA);
4655 used_prefixes |= (prefixes & PREFIX_DATA);
4680 used_prefixes |= (prefixes & PREFIX_DATA);
4685 if (prefixes & PREFIX_DATA)
4689 used_prefixes |= (prefixes & PREFIX_DATA);
4716 used_prefixes |= (prefixes & PREFIX_DATA);
4735 if (prefixes & PREFIX_CS)
4740 if (prefixes & PREFIX_DS)
4745 if (prefixes & PREFIX_SS)
4750 if (prefixes & PREFIX_ES)
4755 if (prefixes & PREFIX_FS)
4760 if (prefixes & PREFIX_GS)
4894 used_prefixes |= (prefixes & PREFIX_DATA);
4907 used_prefixes |= (prefixes & PREFIX_DATA);
4914 used_prefixes |= (prefixes & PREFIX_DATA);
4934 used_prefixes |= (prefixes & PREFIX_DATA);
4994 used_prefixes |= (prefixes & PREFIX_DATA);
5011 used_prefixes |= (prefixes & PREFIX_DATA);
5154 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5228 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5280 used_prefixes |= (prefixes & PREFIX_DATA);
5421 used_prefixes |= (prefixes & PREFIX_DATA);
5468 used_prefixes |= (prefixes & PREFIX_DATA);
5476 used_prefixes |= (prefixes & PREFIX_DATA);
5519 used_prefixes |= (prefixes & PREFIX_DATA);
5574 used_prefixes |= (prefixes & PREFIX_DATA);
5619 used_prefixes |= (prefixes & PREFIX_DATA);
5664 if ((prefixes & PREFIX_DATA) == 0)
5668 used_prefixes |= (prefixes & PREFIX_DATA);
5704 used_prefixes |= (prefixes & PREFIX_DATA);
5728 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5745 || (prefixes & PREFIX_ADDR))
5759 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5776 used_prefixes |= (prefixes & PREFIX_ADDR);
5836 if ((prefixes
5843 prefixes |= PREFIX_DS;
5857 else if (address_mode != mode_64bit && (prefixes & PREFIX_LOCK))
5899 used_prefixes |= (prefixes & PREFIX_DATA);
5900 if (prefixes & PREFIX_DATA)
5931 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
5932 used_prefixes |= (prefixes & PREFIX_DATA);
5941 used_prefixes |= (prefixes & PREFIX_DATA);
5942 if (prefixes & PREFIX_DATA)
5968 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
5969 used_prefixes |= (prefixes & PREFIX_DATA);
5978 used_prefixes |= (prefixes & PREFIX_DATA);
5986 used_prefixes |= (prefixes & PREFIX_DATA);
6077 if ((prefixes & PREFIX_DATA) != 0
6089 if ((prefixes & PREFIX_DATA) != 0
6210 used_prefixes |= (prefixes & PREFIX_REPZ);
6211 if (prefixes & PREFIX_REPZ)
6215 used_prefixes |= (prefixes & PREFIX_DATA);
6216 if (prefixes & PREFIX_DATA)
6220 used_prefixes |= (prefixes & PREFIX_REPNZ);
6221 if (prefixes & PREFIX_REPNZ)
6227 used_prefixes |= (prefixes & PREFIX_REPZ);
6272 && (prefixes & PREFIX_ADDR)
6294 if (!(prefixes & PREFIX_ADDR))
6361 if (!(prefixes & PREFIX_ADDR))
6414 /* Throw away prefixes and 1st. opcode byte. */
6459 used_prefixes |= (prefixes & (PREFIX_DATA | PREFIX_REPZ));
6460 if (prefixes & PREFIX_DATA)
6462 else if (prefixes & PREFIX_REPZ)
6476 if (prefixes & PREFIX_REPZ)
6517 if ((prefixes & PREFIX_ADDR))
6588 used_prefixes |= (prefixes & PREFIX_DATA);
6619 else if ((prefixes & PREFIX_DATA))