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 */
3326 prefixes = 0;
3335 /* REX prefixes family. */
3358 prefixes |= PREFIX_REPZ;
3361 prefixes |= PREFIX_REPNZ;
3364 prefixes |= PREFIX_LOCK;
3367 prefixes |= PREFIX_CS;
3370 prefixes |= PREFIX_SS;
3373 prefixes |= PREFIX_DS;
3376 prefixes |= PREFIX_ES;
3379 prefixes |= PREFIX_FS;
3382 prefixes |= PREFIX_GS;
3385 prefixes |= PREFIX_DATA;
3388 prefixes |= PREFIX_ADDR;
3391 /* fwait is really an instruction. If there are prefixes
3394 if (prefixes || rex)
3396 prefixes |= PREFIX_FWAIT;
3400 prefixes = PREFIX_FWAIT;
3444 /* REX prefixes family. */
3503 * (see topic "Redundant prefixes" in the "Differences from 8086"
3698 if (((prefixes & PREFIX_FWAIT)
3705 by other prefixes. Print the first prefix. */
3759 if (!uses_REPZ_prefix && (prefixes & PREFIX_REPZ))
3764 if (!uses_REPNZ_prefix && (prefixes & PREFIX_REPNZ))
3770 if (!uses_LOCK_prefix && (prefixes & PREFIX_LOCK))
3776 if (prefixes & PREFIX_ADDR)
3789 if (!uses_DATA_prefix && (prefixes & PREFIX_DATA))
3836 used_prefixes |= (prefixes & PREFIX_REPZ);
3837 if (prefixes & PREFIX_REPZ)
3843 used_prefixes |= (prefixes & PREFIX_REPNZ);
3844 if (prefixes & PREFIX_REPNZ)
3848 used_prefixes |= (prefixes & PREFIX_DATA);
3849 if (prefixes & PREFIX_DATA)
3879 /* See if any prefixes were not used. If so, print the first one
3883 if ((prefixes & ~used_prefixes) != 0)
4397 if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS))
4403 used_prefixes |= (prefixes & PREFIX_DATA);
4418 used_prefixes |= (prefixes & PREFIX_DATA);
4434 used_prefixes |= (prefixes & PREFIX_ADDR);
4439 if ((prefixes & PREFIX_ADDR) || (sizeflag & SUFFIX_ALWAYS))
4445 used_prefixes |= (prefixes & PREFIX_ADDR);
4456 used_prefixes |= (prefixes & PREFIX_DATA);
4461 if ((prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_CS
4462 || (prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_DS)
4464 used_prefixes |= prefixes & (PREFIX_CS | PREFIX_DS);
4467 if (prefixes & PREFIX_DS)
4501 if ((prefixes & PREFIX_FWAIT) == 0)
4515 used_prefixes |= (prefixes & PREFIX_DATA);
4529 if ((prefixes & PREFIX_DATA)
4543 used_prefixes |= (prefixes & PREFIX_DATA);
4571 used_prefixes |= (prefixes & PREFIX_DATA);
4591 used_prefixes |= (prefixes & PREFIX_DATA);
4616 used_prefixes |= (prefixes & PREFIX_DATA);
4621 if (prefixes & PREFIX_DATA)
4625 used_prefixes |= (prefixes & PREFIX_DATA);
4652 used_prefixes |= (prefixes & PREFIX_DATA);
4671 if (prefixes & PREFIX_CS)
4676 if (prefixes & PREFIX_DS)
4681 if (prefixes & PREFIX_SS)
4686 if (prefixes & PREFIX_ES)
4691 if (prefixes & PREFIX_FS)
4696 if (prefixes & PREFIX_GS)
4829 used_prefixes |= (prefixes & PREFIX_DATA);
4842 used_prefixes |= (prefixes & PREFIX_DATA);
4849 used_prefixes |= (prefixes & PREFIX_DATA);
4869 used_prefixes |= (prefixes & PREFIX_DATA);
4929 used_prefixes |= (prefixes & PREFIX_DATA);
4946 used_prefixes |= (prefixes & PREFIX_DATA);
5089 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5163 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5215 used_prefixes |= (prefixes & PREFIX_DATA);
5356 used_prefixes |= (prefixes & PREFIX_DATA);
5403 used_prefixes |= (prefixes & PREFIX_DATA);
5411 used_prefixes |= (prefixes & PREFIX_DATA);
5454 used_prefixes |= (prefixes & PREFIX_DATA);
5509 used_prefixes |= (prefixes & PREFIX_DATA);
5554 used_prefixes |= (prefixes & PREFIX_DATA);
5599 if ((prefixes & PREFIX_DATA) == 0)
5603 used_prefixes |= (prefixes & PREFIX_DATA);
5639 used_prefixes |= (prefixes & PREFIX_DATA);
5663 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5680 || (prefixes & PREFIX_ADDR))
5694 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
5711 used_prefixes |= (prefixes & PREFIX_ADDR);
5771 if ((prefixes
5778 prefixes |= PREFIX_DS;
5792 else if (address_mode != mode_64bit && (prefixes & PREFIX_LOCK))
5834 used_prefixes |= (prefixes & PREFIX_DATA);
5835 if (prefixes & PREFIX_DATA)
5866 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
5867 used_prefixes |= (prefixes & PREFIX_DATA);
5876 used_prefixes |= (prefixes & PREFIX_DATA);
5877 if (prefixes & PREFIX_DATA)
5903 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
5904 used_prefixes |= (prefixes & PREFIX_DATA);
5913 used_prefixes |= (prefixes & PREFIX_DATA);
5921 used_prefixes |= (prefixes & PREFIX_DATA);
6012 if ((prefixes & PREFIX_DATA) != 0
6024 if ((prefixes & PREFIX_DATA) != 0
6145 used_prefixes |= (prefixes & PREFIX_REPZ);
6146 if (prefixes & PREFIX_REPZ)
6150 used_prefixes |= (prefixes & PREFIX_DATA);
6151 if (prefixes & PREFIX_DATA)
6155 used_prefixes |= (prefixes & PREFIX_REPNZ);
6156 if (prefixes & PREFIX_REPNZ)
6162 used_prefixes |= (prefixes & PREFIX_REPZ);
6207 && (prefixes & PREFIX_ADDR)
6229 if (!(prefixes & PREFIX_ADDR))
6296 if (!(prefixes & PREFIX_ADDR))
6349 /* Throw away prefixes and 1st. opcode byte. */
6394 used_prefixes |= (prefixes & (PREFIX_DATA | PREFIX_REPZ));
6395 if (prefixes & PREFIX_DATA)
6397 else if (prefixes & PREFIX_REPZ)
6411 if (prefixes & PREFIX_REPZ)
6452 if ((prefixes & PREFIX_ADDR))
6523 used_prefixes |= (prefixes & PREFIX_DATA);
6554 else if ((prefixes & PREFIX_DATA))