diff options
author | MITSUNARI Shigeo <[email protected]> | 2024-10-15 03:50:27 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2024-10-15 03:50:27 +0900 |
commit | 0c2f7fc6dbd713b2d690a5859f562746b4dd568d (patch) | |
tree | 7bc295be6e954f652808077f504d122301957c03 /test | |
parent | 46238d9845ff1226b029152d7c787aa661324620 (diff) | |
download | xbyak-0c2f7fc6dbd713b2d690a5859f562746b4dd568d.tar.gz xbyak-0c2f7fc6dbd713b2d690a5859f562746b4dd568d.zip |
vmovw supports avx10.2
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 2 | ||||
-rw-r--r-- | test/avx10/misc.txt | 7 | ||||
-rw-r--r-- | test/avx10/old.txt | 4 | ||||
-rw-r--r-- | test/test_by_xed.cpp | 2 |
4 files changed, 9 insertions, 6 deletions
diff --git a/test/Makefile b/test/Makefile index 8313a6c..cf5c716 100644 --- a/test/Makefile +++ b/test/Makefile @@ -60,7 +60,7 @@ apx: apx.cpp $(XBYAK_INC) avx10_test: avx10_test.cpp $(XBYAK_INC) $(CXX) $(CFLAGS) avx10_test.cpp -o $@ -DXBYAK64 -TEST_FILES=old.txt new-ymm.txt bf16.txt comp.txt convert.txt minmax.txt saturation.txt +TEST_FILES=old.txt new-ymm.txt bf16.txt comp.txt misc.txt convert.txt minmax.txt saturation.txt xed_test: @set -e; \ for target in $(addprefix avx10/, $(TEST_FILES)); do \ diff --git a/test/avx10/misc.txt b/test/avx10/misc.txt index 7c969bf..6f5c156 100644 --- a/test/avx10/misc.txt +++ b/test/avx10/misc.txt @@ -1,3 +1,4 @@ +// AVX10 integer and FP16 VNNI, media and zero-extending vdpphps(xm1, xm2, xm3); vdpphps(xm1, xm2, ptr[rax+128]); vdpphps(xm1, xm2, ptr_b[rax+128]); @@ -168,5 +169,11 @@ vpdpwuuds(zm1, zm2, ptr_b[rax+128]); // vmovd(xm10, xm20); +vmovd(xm1, xm2); vmovd(xm10, ptr[rax+128]); vmovd(ptr[rax+128], xm30); +// +vmovw(xm1, xm20); +vmovw(xm1, xm2); +vmovw(xm3, ptr [rax+0x40]); +vmovw(ptr [rax+0x40], xm7); diff --git a/test/avx10/old.txt b/test/avx10/old.txt index 9e4f097..f5a143c 100644 --- a/test/avx10/old.txt +++ b/test/avx10/old.txt @@ -355,10 +355,6 @@ vgetmantsh(xmm1|k1|T_z|T_sae, xmm3, xmm5, 0x6); vmovsh(xmm1|k1|T_z, ptr [rax+0x40]); vmovsh(ptr [rax+0x40]|k1, xmm1); vmovsh(xmm1|k2|T_z, xmm3, xmm5); -vmovw(xmm1, r13d); -vmovw(xmm3, ptr [rax+0x40]); -vmovw(r9d, xmm1); -vmovw(ptr [rax+0x40], xmm7); vcvtsd2sh(xmm1|k1|T_z|T_rd_sae, xmm2, xmm3); vcvtsd2sh(xmm1, xmm2, ptr [rax+0x40]); vcvtsh2sd(xmm1|k1|T_z|T_sae, xmm2, xmm3); diff --git a/test/test_by_xed.cpp b/test/test_by_xed.cpp index 71b5137..af39296 100644 --- a/test/test_by_xed.cpp +++ b/test/test_by_xed.cpp @@ -7,7 +7,7 @@ struct Code : Xbyak::CodeGenerator { Code() : Xbyak::CodeGenerator(4096*8) { - setDefaultEncoding(EvexEncoding, AVX10p2Encoding); + setDefaultEncoding(EvexEncoding, AVX10v2Encoding); #include "tmp.cpp" } }; |