Skip to content

Commit 9b101e9

Browse files
author
H. Peter Anvin (Intel)
committed
insns.pl: register 0 should add RN_ZERO, not RM_ZERO
Not all registers are valid as memory references, and thus using RM_ZERO is incorrect. Use RN_ZERO instead, which is simply the zero-register bit. Fixes: #140 Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent 0c83798 commit 9b101e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x86/insns.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ ($$$$)
760760
$opsz = $1 + 0;
761761
}
762762
if ($opp =~ s/0$//) {
763-
push(@oppx, 'rm_zero');
763+
push(@oppx, 'rn_zero');
764764
$iszero = 1;
765765
if ($opp !~ /reg/) {
766766
$opp .= 'reg';

0 commit comments

Comments
 (0)