mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
Fix BR 1490407: size of the second operand of LAR/LSL
The second operand of LAR/LSL is always 16 bits.
This commit is contained in:
parent
f3748bbad0
commit
3e1aaa9dd0
20
insns.dat
20
insns.dat
@ -616,12 +616,12 @@ JMPE rm16 \320\2\x0F\x00\206 IA64
|
||||
JMPE rm32 \321\2\x0F\x00\206 IA64
|
||||
JRCXZ imm \1\xE3\50 X64
|
||||
LAHF void \1\x9F 8086
|
||||
LAR reg16,mem \320\2\x0F\x02\110 286,PROT,SM
|
||||
LAR reg16,mem \320\2\x0F\x02\110 286,PROT,SW
|
||||
LAR reg16,reg16 \320\2\x0F\x02\110 286,PROT
|
||||
LAR reg32,mem \321\2\x0F\x02\110 386,PROT,SM
|
||||
LAR reg32,reg32 \321\2\x0F\x02\110 386,PROT
|
||||
LAR reg64,mem \324\2\x0F\x02\110 X64,SM
|
||||
LAR reg64,reg64 \324\2\x0F\x02\110 X64,PROT
|
||||
LAR reg32,mem \321\2\x0F\x02\110 386,PROT,SW
|
||||
LAR reg32,reg16 \321\2\x0F\x02\110 386,PROT
|
||||
LAR reg64,mem \324\2\x0F\x02\110 X64,PROT,SW
|
||||
LAR reg64,reg16 \324\2\x0F\x02\110 X64,PROT
|
||||
LDS reg16,mem \320\1\xC5\110 8086,NOLONG
|
||||
LDS reg32,mem \321\1\xC5\110 386,NOLONG
|
||||
LEA reg16,mem \320\1\x8D\110 8086
|
||||
@ -669,12 +669,12 @@ LOOPZ imm \312\1\xE1\50 8086
|
||||
LOOPZ imm,reg_cx \310\1\xE1\50 8086,NOLONG
|
||||
LOOPZ imm,reg_ecx \311\1\xE1\50 386
|
||||
LOOPZ imm,reg_rcx \313\1\xE1\50 X64
|
||||
LSL reg16,mem \320\2\x0F\x03\110 286,PROT,SM
|
||||
LSL reg16,mem \320\2\x0F\x03\110 286,PROT,SW
|
||||
LSL reg16,reg16 \320\2\x0F\x03\110 286,PROT
|
||||
LSL reg32,mem \321\2\x0F\x03\110 386,PROT,SM
|
||||
LSL reg32,reg32 \321\2\x0F\x03\110 386,PROT
|
||||
LSL reg64,mem \324\2\x0F\x03\110 X64,SM
|
||||
LSL reg64,reg64 \324\2\x0F\x03\110 X64,PROT
|
||||
LSL reg32,mem \321\2\x0F\x03\110 386,PROT,SW
|
||||
LSL reg32,reg16 \321\2\x0F\x03\110 386,PROT
|
||||
LSL reg64,mem \324\2\x0F\x03\110 X64,PROT,SW
|
||||
LSL reg64,reg16 \324\2\x0F\x03\110 X64,PROT
|
||||
LSS reg16,mem \320\2\x0F\xB2\110 386
|
||||
LSS reg32,mem \321\2\x0F\xB2\110 386
|
||||
LTR mem \1\x0F\170\203 286,PROT,PRIV
|
||||
|
21
test/larlsl.asm
Normal file
21
test/larlsl.asm
Normal file
@ -0,0 +1,21 @@
|
||||
bits 64
|
||||
|
||||
lar ax,bx
|
||||
lar ax,[rsi]
|
||||
lar ax,word [rsi]
|
||||
lar eax,bx
|
||||
lar eax,[rsi]
|
||||
lar eax,word [rsi]
|
||||
lar rax,bx
|
||||
lar rax,[rsi]
|
||||
lar rax,word [rsi]
|
||||
|
||||
lsl ax,bx
|
||||
lsl ax,[rsi]
|
||||
lsl ax,word [rsi]
|
||||
lsl eax,bx
|
||||
lsl eax,[rsi]
|
||||
lsl eax,word [rsi]
|
||||
lsl rax,bx
|
||||
lsl rax,[rsi]
|
||||
lsl rax,word [rsi]
|
Loading…
Reference in New Issue
Block a user