aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 18:08:33 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 18:08:33 +0300
commit40650a357a92d9edd858a72aabce06d491799df8 (patch)
tree3ad57058ff9d7b41a1cc413a8eb78902d51ffb88 /travis/test
parent91d0980bfabeacb80269c88a097d078d9aadfcd2 (diff)
downloadnasm-40650a357a92d9edd858a72aabce06d491799df8.tar.gz
nasm-40650a357a92d9edd858a72aabce06d491799df8.tar.xz
nasm-40650a357a92d9edd858a72aabce06d491799df8.zip
travis: add sreg
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/sreg.asm65
-rw-r--r--travis/test/sreg.bin.t1
-rw-r--r--travis/test/sreg.json12
3 files changed, 78 insertions, 0 deletions
diff --git a/travis/test/sreg.asm b/travis/test/sreg.asm
new file mode 100644
index 00000000..11449a50
--- /dev/null
+++ b/travis/test/sreg.asm
@@ -0,0 +1,65 @@
+ bits 64
+ mov es,rax
+ mov ss,rax
+ mov ds,rax
+ mov fs,rax
+ mov gs,rax
+ mov es,eax
+ mov ss,eax
+ mov ds,eax
+ mov fs,eax
+ mov gs,eax
+ mov es,ax
+ mov ss,ax
+ mov ds,ax
+ mov fs,ax
+ mov gs,ax
+ mov es,[rsi]
+ mov ss,[rsi]
+ mov ds,[rsi]
+ mov fs,[rsi]
+ mov gs,[rsi]
+ mov es,word [rsi]
+ mov ss,word [rsi]
+ mov ds,word [rsi]
+ mov fs,word [rsi]
+ mov gs,word [rsi]
+ mov es,qword [rsi]
+ mov ss,qword [rsi]
+ mov ds,qword [rsi]
+ mov fs,qword [rsi]
+ mov gs,qword [rsi]
+ mov rax,es
+ mov rax,cs
+ mov rax,ss
+ mov rax,ds
+ mov rax,fs
+ mov rax,gs
+ mov eax,es
+ mov eax,ss
+ mov eax,ds
+ mov eax,fs
+ mov eax,fs
+ mov ax,es
+ mov ax,ss
+ mov ax,ds
+ mov ax,fs
+ mov ax,gs
+ mov [rdi],es
+ mov [rdi],cs
+ mov [rdi],ss
+ mov [rdi],ds
+ mov [rdi],fs
+ mov [rdi],gs
+ mov word [rdi],es
+ mov word [rdi],cs
+ mov word [rdi],ss
+ mov word [rdi],ds
+ mov word [rdi],fs
+ mov word [rdi],gs
+ mov qword [rdi],es
+ mov qword [rdi],cs
+ mov qword [rdi],ss
+ mov qword [rdi],ds
+ mov qword [rdi],fs
+ mov qword [rdi],gs
diff --git a/travis/test/sreg.bin.t b/travis/test/sreg.bin.t
new file mode 100644
index 00000000..70f8319c
--- /dev/null
+++ b/travis/test/sreg.bin.t
@@ -0,0 +1 @@
+ŽĀŽÐŽØŽāŽčŽĀŽÐŽØŽāŽčŽĀŽÐŽØŽāŽčŽŽŽŽ&Ž.ŽŽŽŽ&Ž.HŽHŽHŽHŽ&HŽ.ŒĀŒČŒÐŒØŒāŒčŒĀŒÐŒØŒāŒāfŒĀfŒÐfŒØfŒāfŒčŒŒŒŒŒ'Œ/ŒŒŒŒŒ'Œ/HŒHŒHŒHŒHŒ'HŒ/ \ No newline at end of file
diff --git a/travis/test/sreg.json b/travis/test/sreg.json
new file mode 100644
index 00000000..703d4826
--- /dev/null
+++ b/travis/test/sreg.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test segment registers in 64 bit mode",
+ "id": "sreg",
+ "format": "bin",
+ "source": "sreg.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "sreg.bin" }
+ ]
+ }
+]