summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-04 19:30:31 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:45 +0300
commit17968224531e018104eb5a668bdd8109a496cf5e (patch)
tree8c1c1c12f1ec1737826e334b59ecbf9f15d59c66 /travis
parent9578690f5b4f1afa6ba7fff4402be6e4995c9b8f (diff)
downloadnasm-17968224531e018104eb5a668bdd8109a496cf5e.tar.gz
test: nasm-t -- Add loopoffs test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/loopoffs.asm9
-rw-r--r--travis/test/loopoffs.bin.t1
-rw-r--r--travis/test/loopoffs.json17
3 files changed, 27 insertions, 0 deletions
diff --git a/travis/test/loopoffs.asm b/travis/test/loopoffs.asm
new file mode 100644
index 00000000..fbb0b012
--- /dev/null
+++ b/travis/test/loopoffs.asm
@@ -0,0 +1,9 @@
+ bits 16
+delay: loop delay
+ loop $
+delay2: a32 loop delay2
+ a32 loop $
+delay3: loop delay3,ecx
+ loop $,ecx
+delay4: a32 loop delay4,ecx
+ a32 loop $,ecx
diff --git a/travis/test/loopoffs.bin.t b/travis/test/loopoffs.bin.t
new file mode 100644
index 00000000..514f59b7
--- /dev/null
+++ b/travis/test/loopoffs.bin.t
@@ -0,0 +1 @@
+âþâþgâýgâýgâýgâýgâýgâý \ No newline at end of file
diff --git a/travis/test/loopoffs.json b/travis/test/loopoffs.json
new file mode 100644
index 00000000..90c71b36
--- /dev/null
+++ b/travis/test/loopoffs.json
@@ -0,0 +1,17 @@
+[
+ {
+ "description": "Test loop offsets (-Ox)",
+ "id": "loopoffs",
+ "format": "bin",
+ "source": "loopoffs.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "loopoffs.bin" }
+ ]
+ },
+ {
+ "description": "Test loop offsets (-O0)",
+ "ref": "loopoffs",
+ "option": "-O0"
+ }
+]