Lines Matching defs:rex2
1843 /* Skip if this isn't a REX2 instruction, nor un-prefixed MOVRS. */
2268 unsigned int rex2 = 0;
2275 /* Synthesize a REX2 prefix from EVEX, just enough for the LEA
2281 rex2 |= REX_R;
2283 rex2 |= REX_R << 4;
2286 rex2 |= REX_W;
2303 rex2 = bfd_get_8 (abfd, contents + roff - 3) | 0x100;
2305 rex_w = (rex2 & REX_W) != 0;
2359 /* Clear the W bit in REX byte and REX2 payload. */
2372 if (opcode == 0x85 && !(rex2 & (REX2_M << 4)))
2379 else if ((opcode | 0x38) == 0x3b && !(rex2 & (REX2_M << 4)))
2386 else if (opcode == 0xaf && (rex2 & (REX2_M << 4)))
2395 else if (opcode == 0xff && !(rex2 & (REX2_M << 4)))
2405 else if (rex2)
2409 bfd_put_8 (abfd, rex2, contents + roff - 2);
2458 else if (rex2)
2460 /* Move the R bits to the B bits in REX2 payload byte. */
2461 rex2 = ((rex2 & ~rex2_mask)
2462 | (rex2 & (REX_R | REX_R << 4)) >> 2);
2463 bfd_put_8 (abfd, rex2, contents + roff - 3);
2473 segment overrides instead. When necessary also install the REX2
2482 bfd_put_8 (abfd, rex2, contents + roff - 3);
4313 unsigned int val, rex2;
4318 rex2 = bfd_get_8 (input_bfd, contents + roff - 3);
4320 /* Move the R bits to the B bits in REX2 payload
4323 ((rex2 & ~rex2_mask)
4324 | (rex2 & rex2_mask) >> 2),
4486 unsigned int rex2, type, reg;
4492 rex2 = bfd_get_8 (input_bfd, contents + roff - 3);
4496 /* Move the R bits to the B bits in REX2 payload
4504 rex2 = 0x2e;
4512 ((rex2 & ~rex2_mask)
4513 | (rex2 & rex2_mask) >> 2),
4580 /* Convert MOVRS to REX2-encoded MOV. */
4581 unsigned int rex2 = 0;
4583 /* Move the EVEX R bits to the REX2 B ones. */
4585 rex2 |= REX_B;
4587 rex2 |= REX_B << 4;
4588 /* Propagate the EVEX W bit to the REX2 one. */
4591 rex2 |= REX_W;
4597 bfd_put_8 (output_bfd, rex2, contents + roff - 3);