aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-04 19:36:56 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:46 +0300
commit89e625f2bfb6f833defeee74c242bc8a33d4f078 (patch)
treec963aca5d5955ed44b415c4ccf06da81a2e2bc60
parent59cde89ba90b41780b4f35bd51c30611f157854e (diff)
downloadnasm-89e625f2bfb6f833defeee74c242bc8a33d4f078.tar.gz
nasm-89e625f2bfb6f833defeee74c242bc8a33d4f078.tar.xz
nasm-89e625f2bfb6f833defeee74c242bc8a33d4f078.zip
test: nasm-t -- Add larlsl test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/larlsl.asm21
-rw-r--r--travis/test/larlsl.bin.t1
-rw-r--r--travis/test/larlsl.json11
3 files changed, 33 insertions, 0 deletions
diff --git a/travis/test/larlsl.asm b/travis/test/larlsl.asm
new file mode 100644
index 00000000..c3c12997
--- /dev/null
+++ b/travis/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]
diff --git a/travis/test/larlsl.bin.t b/travis/test/larlsl.bin.t
new file mode 100644
index 00000000..ea846b8d
--- /dev/null
+++ b/travis/test/larlsl.bin.t
@@ -0,0 +1 @@
+fffHHHfffHHH \ No newline at end of file
diff --git a/travis/test/larlsl.json b/travis/test/larlsl.json
new file mode 100644
index 00000000..a56d76c6
--- /dev/null
+++ b/travis/test/larlsl.json
@@ -0,0 +1,11 @@
+[
+ {
+ "description": "Test lar and lsl instructions",
+ "id": "larlsl",
+ "format": "bin",
+ "source": "larlsl.asm",
+ "target": [
+ { "output": "larlsl.bin" }
+ ]
+ }
+]