diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-10-07 05:35:38 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-10-07 05:35:38 +0000 |
commit | 25f6dfd108801d1dc5877c420ef0dd47131aeda7 (patch) | |
tree | 19b85532007f5e2d8b574e7029b8c10d31010c14 /test/MC/X86/x86-32.s | |
parent | 217f0e9ca494a1752c591f50f04b4143eb1763c5 (diff) | |
download | llvm-25f6dfd108801d1dc5877c420ef0dd47131aeda7.tar.gz llvm-25f6dfd108801d1dc5877c420ef0dd47131aeda7.tar.bz2 llvm-25f6dfd108801d1dc5877c420ef0dd47131aeda7.tar.xz |
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
Diffstat (limited to 'test/MC/X86/x86-32.s')
-rw-r--r-- | test/MC/X86/x86-32.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/MC/X86/x86-32.s b/test/MC/X86/x86-32.s index 41226474a7..19f14450fe 100644 --- a/test/MC/X86/x86-32.s +++ b/test/MC/X86/x86-32.s @@ -948,11 +948,11 @@ fsubp %st, %st(2) // PR10345 // CHECK: xchgl %eax, %eax -// CHECK: encoding: [0x87,0xc0] +// CHECK: encoding: [0x90] xchgl %eax, %eax // CHECK: xchgw %ax, %ax -// CHECK: encoding: [0x66,0x87,0xc0] +// CHECK: encoding: [0x66,0x90] xchgw %ax, %ax // CHECK: xchgl %ecx, %eax |