OSDN Git Service

Revert part of r141274. Only need to change encoding for xchg %eax, %eax in 64-bit...
authorCraig Topper <craig.topper@gmail.com>
Fri, 7 Oct 2011 05:35:38 +0000 (05:35 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 7 Oct 2011 05:35:38 +0000 (05:35 +0000)
commit25f6dfd108801d1dc5877c420ef0dd47131aeda7
tree19b85532007f5e2d8b574e7029b8c10d31010c14
parent217f0e9ca494a1752c591f50f04b4143eb1763c5
Revert part of r141274. Only need to change encoding for xchg %eax, %eax in 64-bit mode. This is because in 64-bit mode xchg %eax, %eax implies zeroing the upper 32-bits of RAX which makes it not a NOP. In 32-bit mode using NOP encoding is fine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141353 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.td
lib/Target/X86/X86RegisterInfo.td
test/MC/X86/x86-32.s
test/MC/X86/x86-64.s
utils/TableGen/X86DisassemblerTables.cpp