diff options
| author | ruki <[email protected]> | 2020-05-19 23:12:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-19 13:12:57 +0800 |
| commit | 26880aba618ec5aab600170f1d695d34ee742068 (patch) | |
| tree | 19652683a75411bf6dbbca04f1067a3a9e8c6342 | |
| parent | ea6b12de91048a1fe404bbad8b14ed2a148730a7 (diff) | |
add gas tests
| -rw-r--r-- | tests/projects/asm/fasm/src/main.S (renamed from tests/projects/fasm/src/main.S) | 0 | ||||
| -rw-r--r-- | tests/projects/asm/fasm/xmake.lua (renamed from tests/projects/fasm/xmake.lua) | 0 | ||||
| -rw-r--r-- | tests/projects/asm/gas/src/main.S | 9 | ||||
| -rw-r--r-- | tests/projects/asm/gas/xmake.lua (renamed from tests/projects/nasm/xmake.lua) | 0 | ||||
| -rw-r--r-- | tests/projects/asm/nasm/src/main.S (renamed from tests/projects/nasm/src/main.S) | 0 | ||||
| -rw-r--r-- | tests/projects/asm/nasm/xmake.lua (renamed from tests/projects/yasm/xmake.lua) | 0 | ||||
| -rw-r--r-- | tests/projects/asm/yasm/src/main.S (renamed from tests/projects/yasm/src/main.S) | 0 | ||||
| -rw-r--r-- | tests/projects/asm/yasm/xmake.lua | 3 |
8 files changed, 12 insertions, 0 deletions
diff --git a/tests/projects/fasm/src/main.S b/tests/projects/asm/fasm/src/main.S index 90f4b88b4..90f4b88b4 100644 --- a/tests/projects/fasm/src/main.S +++ b/tests/projects/asm/fasm/src/main.S diff --git a/tests/projects/fasm/xmake.lua b/tests/projects/asm/fasm/xmake.lua index f728b2ca1..f728b2ca1 100644 --- a/tests/projects/fasm/xmake.lua +++ b/tests/projects/asm/fasm/xmake.lua diff --git a/tests/projects/asm/gas/src/main.S b/tests/projects/asm/gas/src/main.S new file mode 100644 index 000000000..9c242f4a1 --- /dev/null +++ b/tests/projects/asm/gas/src/main.S @@ -0,0 +1,9 @@ + .global main + + .text +main: # This is called by C library's startup code + mov $message, %rdi # First integer (or pointer) parameter in %rdi + call puts # puts(message) + ret # Return to C library code +message: + .asciz "Hola, mundo" # asciz puts a 0 byte at the end diff --git a/tests/projects/nasm/xmake.lua b/tests/projects/asm/gas/xmake.lua index f728b2ca1..f728b2ca1 100644 --- a/tests/projects/nasm/xmake.lua +++ b/tests/projects/asm/gas/xmake.lua diff --git a/tests/projects/nasm/src/main.S b/tests/projects/asm/nasm/src/main.S index 5b3a93699..5b3a93699 100644 --- a/tests/projects/nasm/src/main.S +++ b/tests/projects/asm/nasm/src/main.S diff --git a/tests/projects/yasm/xmake.lua b/tests/projects/asm/nasm/xmake.lua index f728b2ca1..f728b2ca1 100644 --- a/tests/projects/yasm/xmake.lua +++ b/tests/projects/asm/nasm/xmake.lua diff --git a/tests/projects/yasm/src/main.S b/tests/projects/asm/yasm/src/main.S index 800722a44..800722a44 100644 --- a/tests/projects/yasm/src/main.S +++ b/tests/projects/asm/yasm/src/main.S diff --git a/tests/projects/asm/yasm/xmake.lua b/tests/projects/asm/yasm/xmake.lua new file mode 100644 index 000000000..f728b2ca1 --- /dev/null +++ b/tests/projects/asm/yasm/xmake.lua @@ -0,0 +1,3 @@ +target("test") + set_kind("binary") + add_files("src/*.S") |
