mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -620,6 +620,7 @@ void DisassemblerTables::setTableFields(ModRMDecision &decision,
|
||||
|
||||
if(previousInfo.name == "NOOP" && (newInfo.name == "XCHG16ar" ||
|
||||
newInfo.name == "XCHG32ar" ||
|
||||
newInfo.name == "XCHG32ar64" ||
|
||||
newInfo.name == "XCHG64ar"))
|
||||
continue; // special case for XCHG*ar and NOOP
|
||||
|
||||
|
Reference in New Issue
Block a user