From daa534e55cfc7d907ecfff91ab3bb6c1cc0eea55 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 15 Oct 2020 00:51:15 +0300 Subject: [PATCH] travis: add hle Signed-off-by: Cyrill Gorcunov --- travis/test/hle.asm | 19 +++++++++++++++++++ travis/test/hle.bin.t | Bin 0 -> 62 bytes travis/test/hle.json | 13 +++++++++++++ travis/test/hle.stderr | 4 ++++ 4 files changed, 36 insertions(+) create mode 100644 travis/test/hle.asm create mode 100644 travis/test/hle.bin.t create mode 100644 travis/test/hle.json create mode 100644 travis/test/hle.stderr diff --git a/travis/test/hle.asm b/travis/test/hle.asm new file mode 100644 index 000000000..e59b4f589 --- /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 0000000000000000000000000000000000000000..587a66d8ee856b6e2bd7f032d624efb22a849347 GIT binary patch literal 62 wcmezLfsyS~yTs=YogAM#IX*Fi$i-F+3=E$;SwYk%2(<_-)BzEKP(Vor0PN5bl>h($ literal 0 HcmV?d00001 diff --git a/travis/test/hle.json b/travis/test/hle.json new file mode 100644 index 000000000..89428db2b --- /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 000000000..72f84baf2 --- /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]