Skip to content

Commit 8f1cd30

Browse files
author
H. Peter Anvin (Intel)
committed
insns.dat: fix CMPXCHG operand size
The operand size prefix byte code (o#) was missing in the CMPXCHG pattern. Reported-by: Yongjie Sheng <sheng.yongjie@intel.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent a7457e6 commit 8f1cd30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x86/insns.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ $wdq MOVZX reg#,rm32 [rm: nw o# 8b /r] 8086,OPT,SX,ND
242242
$wdq MOVZXD reg#,rm32 [rm: nw o# 8b /r] 8086,OPT,ND
243243

244244
;# Atomic operations
245-
$bwdq CMPXCHG rm#,reg# [mr: hle 0f b0# /r] PENT,SM,LOCK
245+
$bwdq CMPXCHG rm#,reg# [mr: hle o# 0f b0# /r] PENT,SM,LOCK
246246
CMPXCHG8B mem64 [m: hle norexw 0f c7 /1] PENT,LOCK
247247
CMPXCHG16B mem128 [m: o64 0f c7 /1] X86_64,LONG,LOCK
248248

@@ -258,7 +258,7 @@ $bwdq XCHG reg#,rm# [rm: hlenl o# 86# /r] 8086,SM,LOCK1
258258
$bwdq XCHG rm#,reg# [mr: hlenl o# 86# /r] 8086,SM,LOCK,ND
259259

260260
; 486-only opcode present in some but not all 486 chips
261-
$bwd CMPXCHG486 rm#,reg# [mr: 0f a6# /r] 486,SM,UNDOC,NOLONG,ND,LOCK,OBSOLETE
261+
$bwd CMPXCHG486 rm#,reg# [mr: o# 0f a6# /r] 486,SM,UNDOC,NOLONG,ND,LOCK,OBSOLETE
262262

263263
;# Jumps
264264
; APX absolute 64-bit jmp

0 commit comments

Comments
 (0)