llvm.org GIT mirror llvm / 4fc14da
[X86] Teach disassembler to use %eip instead of %rip when 0x67 prefix is used on a rip-relative address. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335413 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 2 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
793793 tryAddingPcLoadReferenceComment(insn.startLocation +
794794 insn.displacementOffset,
795795 insn.displacement + pcrel, Dis);
796 baseReg = MCOperand::createReg(X86::RIP); // Section 2.2.1.6
796 // Section 2.2.1.6
797 baseReg = MCOperand::createReg(insn.addressSize == 4 ? X86::EIP :
798 X86::RIP);
797799 }
798800 else
799801 baseReg = MCOperand::createReg(0);
587587 # Make sure we ignore EVEX.X when modrm.rm encodes a k-register.
588588 #CHECK: vpmovm2b %k0, %xmm0
589589 0x62,0xb2,0x7e,0x08,0x28,0xc0
590
591 # 0x67 prefix prints %eip instead of %rip
592 #CHECK: addb %al, (%eip)
593 0x67,0x00,0x05,0x00,0x00,0x00,0x00