summaryrefslogtreecommitdiff
path: root/test/larlsl.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-25 14:11:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-25 14:11:29 -0700
commitcc00498f5fd14d58bde0f7e32c9b777ca1b94600 (patch)
tree313ae0715087274ca7762c75aa4944df94ee4ff4 /test/larlsl.asm
parentf3748bbad0cab8742c2113da02c1a54789318e99 (diff)
downloadnasm-cc00498f5fd14d58bde0f7e32c9b777ca1b94600.tar.gz
Fix BR 1490407: size of the second operand of LAR/LSL
The second operand of LAR/LSL is always 16 bits.
Diffstat (limited to 'test/larlsl.asm')
-rw-r--r--test/larlsl.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/larlsl.asm b/test/larlsl.asm
new file mode 100644
index 00000000..c3c12997
--- /dev/null
+++ b/test/larlsl.asm
@@ -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]