mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
test: nasm-t -- Add br3005117
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
fbd4b32da9
commit
6144feac6a
24
travis/test/br3005117.asm
Normal file
24
travis/test/br3005117.asm
Normal file
@ -0,0 +1,24 @@
|
||||
%macro B_STRUC 1-*
|
||||
%push foo
|
||||
%define %$strucname %1
|
||||
%%top_%$strucname:
|
||||
%rep %0 - 1
|
||||
%rotate 1
|
||||
resb %{$strucname}%1 - ($ - %%top_%$strucname)
|
||||
%1:
|
||||
%endrep
|
||||
resb %{$strucname}_size - ($ - %%top_%$strucname)
|
||||
%pop
|
||||
%endmacro
|
||||
|
||||
struc timeval
|
||||
.tv_sec resd 1
|
||||
.tv_usec resd 1
|
||||
endstruc
|
||||
|
||||
mov [timeval_struct.tv_sec], eax
|
||||
|
||||
section .bss
|
||||
|
||||
timeval_struct B_STRUC timeval, .tv_sec, .tv_usec
|
||||
timeval_struct_len equ $ - timeval_struct
|
12
travis/test/br3005117.json
Normal file
12
travis/test/br3005117.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"description": "Test br3005117",
|
||||
"id": "br3005117",
|
||||
"format": "elf32",
|
||||
"source": "br3005117.asm",
|
||||
"option": "-Ox",
|
||||
"target": [
|
||||
{ "output": "br3005117.o" }
|
||||
]
|
||||
}
|
||||
]
|
BIN
travis/test/br3005117.o.t
Normal file
BIN
travis/test/br3005117.o.t
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user