aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:51:15 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:54:10 +0300
commitdaa534e55cfc7d907ecfff91ab3bb6c1cc0eea55 (patch)
tree80037767387b5574bcb6348b26be22cfee85ee47
parent9d68a8babd818424c05446d830e22471f1221652 (diff)
downloadnasm-daa534e55cfc7d907ecfff91ab3bb6c1cc0eea55.tar.gz
nasm-daa534e55cfc7d907ecfff91ab3bb6c1cc0eea55.tar.xz
nasm-daa534e55cfc7d907ecfff91ab3bb6c1cc0eea55.zip
travis: add hle
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/hle.asm19
-rw-r--r--travis/test/hle.bin.tbin0 -> 62 bytes
-rw-r--r--travis/test/hle.json13
-rw-r--r--travis/test/hle.stderr4
4 files changed, 36 insertions, 0 deletions
diff --git a/travis/test/hle.asm b/travis/test/hle.asm
new file mode 100644
index 00000000..e59b4f58
--- /dev/null
+++ b/travis/test/hle.asm
@@ -0,0 +1,19 @@
+ bits 32
+
+ xacquire lock add [esi],eax
+ xacquire xchg [eax],ebx
+ xrelease lock mov [eax],ecx
+ xrelease mov [eax],ecx
+ xacquire add ecx,[eax]
+ xrelease mov [eax],ecx
+
+ ; Different opcodes!
+ mov [sym],eax
+ xrelease mov [sym],eax
+ xacquire mov [sym],eax
+
+ mov [sym],al
+ xrelease mov [sym],al
+ xacquire mov [sym],al
+
+sym dd 0
diff --git a/travis/test/hle.bin.t b/travis/test/hle.bin.t
new file mode 100644
index 00000000..587a66d8
--- /dev/null
+++ b/travis/test/hle.bin.t
Binary files differ
diff --git a/travis/test/hle.json b/travis/test/hle.json
new file mode 100644
index 00000000..89428db2
--- /dev/null
+++ b/travis/test/hle.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "Test hle instructions",
+ "id": "hle",
+ "format": "bin",
+ "source": "hle.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "hle.bin" },
+ { "stderr": "hle.stderr" }
+ ]
+ }
+]
diff --git a/travis/test/hle.stderr b/travis/test/hle.stderr
new file mode 100644
index 00000000..72f84baf
--- /dev/null
+++ b/travis/test/hle.stderr
@@ -0,0 +1,4 @@
+./travis/test/hle.asm:5: warning: instruction is not lockable [-w+lock]
+./travis/test/hle.asm:7: warning: xacquire invalid with this instruction [-w+hle]
+./travis/test/hle.asm:13: warning: xacquire invalid with this instruction [-w+hle]
+./travis/test/hle.asm:17: warning: xacquire invalid with this instruction [-w+hle]