[nasm:nasm-2.15.xx] BR 3392676: fix cmpxchg8b/16b with explicit size
nasm-bot for H. Peter Anvin (Intel)
hpa at zytor.com
Thu Jun 4 20:24:04 PDT 2020
Commit-ID: 152cbd37e208b683f424de5d56e35d840b4be31e
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=152cbd37e208b683f424de5d56e35d840b4be31e
Author: H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Thu, 4 Jun 2020 20:22:34 -0700
Committer: H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Thu, 4 Jun 2020 20:22:34 -0700
BR 3392676: fix cmpxchg8b/16b with explicit size
CMPXCHG8b/16b should be legitimate with an explicit operand size.
Reported-by: Xusheng Li <xushengli at protonmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa at zytor.com>
---
x86/insns.dat | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x86/insns.dat b/x86/insns.dat
index e8117241..cec96788 100644
--- a/x86/insns.dat
+++ b/x86/insns.dat
@@ -344,8 +344,8 @@ CMPXCHG486 mem,reg16 [mr: o16 0f a7 /r] 486,SM,UNDOC,ND,LOCK,OBSOLETE
CMPXCHG486 reg16,reg16 [mr: o16 0f a7 /r] 486,UNDOC,ND,OBSOLETE
CMPXCHG486 mem,reg32 [mr: o32 0f a7 /r] 486,SM,UNDOC,ND,LOCK,OBSOLETE
CMPXCHG486 reg32,reg32 [mr: o32 0f a7 /r] 486,UNDOC,ND,OBSOLETE
-CMPXCHG8B mem [m: hle norexw 0f c7 /1] PENT,LOCK
-CMPXCHG16B mem [m: o64 0f c7 /1] X64,LOCK
+CMPXCHG8B mem64 [m: hle norexw 0f c7 /1] PENT,LOCK
+CMPXCHG16B mem128 [m: o64 0f c7 /1] X64,LOCK
CPUID void [ 0f a2] PENT
CPU_READ void [ 0f 3d] PENT,CYRIX
CPU_WRITE void [ 0f 3c] PENT,CYRIX
More information about the Nasm-commits
mailing list