0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-08-23 10:33:50 -04:00

travis: add masmdisp

It is failing right now so I'm not sure if
masm test is correct one. Lets merge it in
this form and update if needed.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2020-10-11 15:52:41 +03:00
parent c0e2bbc66a
commit 84c35517de
3 changed files with 61 additions and 0 deletions

40
travis/test/masmdisp.asm Normal file
View File

@ -0,0 +1,40 @@
%use masm
global fproc, nproc
bits 64
_TEXT segment
fproc proc far
mov eax,dword ptr foo
mov rdx,offset foo
mov ecx,bar[rbx]
lea rsi,foo
lea rsi,dword ptr foo
lea rsi,[foo]
lea rsi,dword [foo]
mov rdi,gs:[rbx]
ret
fproc endp
nproc proc near
mov eax,dword ptr foo
mov rdx,offset foo
mov ecx,bar[rbx]
mov rdi,[gs:foo]
mov rdi,qword ptr gs:foo
ret
nproc endp
_TEXT ends
_DATA segment
nxx dd 80
foo dd 100
_DATA ends
segment _BSS nobits
bar resd 100
xyzzy dd 64 dup (?)
_BSS ends

13
travis/test/masmdisp.json Normal file
View File

@ -0,0 +1,13 @@
[
{
"description": "Test masm",
"id": "masmdisp",
"format": "win32",
"source": "masmdisp.asm",
"option": "-Ox",
"target": [
{ "stderr": "masmdisp.stderr" }
],
"error": "expected"
}
]

View File

@ -0,0 +1,8 @@
./travis/test/masmdisp.asm:19: error: label `fproc' inconsistently redefined
./travis/test/masmdisp.asm:9: info: label `fproc' originally defined here
./travis/test/masmdisp.asm:28: error: label `nproc' inconsistently redefined
./travis/test/masmdisp.asm:21: info: label `nproc' originally defined here
./travis/test/masmdisp.asm:30: error: label `_TEXT' inconsistently redefined
./travis/test/masmdisp.asm:7: info: label `_TEXT' originally defined here
./travis/test/masmdisp.asm:35: error: label `_DATA' inconsistently redefined
./travis/test/masmdisp.asm:32: info: label `_DATA' originally defined here