aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-24 13:55:02 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-24 15:24:32 +0300
commit355d8bf40c926b28d9a6ce9f4e721b99a9826831 (patch)
tree3c70224ab3d97ce6ea4fde5b2b9cf811e099f41e /travis/test
parent3d1f5ce8e7eb3eee5482ad69d2d27456e657ad51 (diff)
downloadnasm-355d8bf40c926b28d9a6ce9f4e721b99a9826831.tar.gz
nasm-355d8bf40c926b28d9a6ce9f4e721b99a9826831.tar.xz
nasm-355d8bf40c926b28d9a6ce9f4e721b99a9826831.zip
travis: add amx test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/amx.asm36
-rw-r--r--travis/test/amx.bin.t1
-rw-r--r--travis/test/amx.json12
3 files changed, 49 insertions, 0 deletions
diff --git a/travis/test/amx.asm b/travis/test/amx.asm
new file mode 100644
index 00000000..88455508
--- /dev/null
+++ b/travis/test/amx.asm
@@ -0,0 +1,36 @@
+ bits 64
+
+%macro amx 1
+ %define treg tmm %+ %1
+
+ ldtilecfg [rsi]
+ sttilecfg [rdi]
+
+ tilezero treg
+
+ tileloadd treg, [rax]
+ tileloadd treg, [rax,rdx]
+ tileloadd treg, [rax,rdx*2]
+
+ tileloaddt1 treg, [rax]
+ tileloaddt1 treg, [rax,rdx]
+ tileloaddt1 treg, [rax,rdx*2]
+
+ tdpbf16ps treg, treg, treg
+ tdpbssd treg, treg, treg
+ tdpbusd treg, treg, treg
+ tdpbsud treg, treg, treg
+ tdpbuud treg, treg, treg
+
+ tilestored [rax], treg
+ tilestored [rax,rdx], treg
+ tilestored [rax,rdx*2], treg
+
+ tilerelease
+%endmacro
+
+%assign n 0
+ %rep 8
+ amx n
+ %assign n n+1
+ %endrep
diff --git a/travis/test/amx.bin.t b/travis/test/amx.bin.t
new file mode 100644
index 00000000..ad28ba5b
--- /dev/null
+++ b/travis/test/amx.bin.t
@@ -0,0 +1 @@
+xIyI{I{K {K{KPyK yKyKPz\{^y^z^x^zK zKzKPxIxIyI{I{K {K {K PyK yK yK Pr\s^q^r^p^zK zK zK PxIxIyI{I{K {K{KPyK yKyKPj\k^i^j^h^zK zKzKPxIxIyI{I{K {K{KPyK yKyKPb\c^a^b^`^zK zKzKPxIxIyI{I{K$ {K${K$PyK$ yK$yK$PZ\[^Y^Z^X^zK$ zK$zK$PxIxIyI{I{K, {K,{K,PyK, yK,yK,PR\S^Q^R^P^zK, zK,zK,PxIxIyI{I{K4 {K4{K4PyK4 yK4yK4PJ\K^I^J^H^zK4 zK4zK4PxIxIyI{I{K< {K<{K<PyK< yK<yK<PB\C^A^B^@^zK< zK<zK<PxI \ No newline at end of file
diff --git a/travis/test/amx.json b/travis/test/amx.json
new file mode 100644
index 00000000..6697331e
--- /dev/null
+++ b/travis/test/amx.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test AMX instructions",
+ "id": "amx",
+ "format": "bin",
+ "source": "amx.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "amx.bin" }
+ ]
+ }
+]