diff options
author | MITSUNARI Shigeo <[email protected]> | 2024-10-11 11:22:35 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2024-10-13 13:51:06 +0900 |
commit | 864fd0c49ce07fc534b16250758987c445bb9c70 (patch) | |
tree | 4615ae3631cf2e9ca7325c39b45a1bc121b926fb /test | |
parent | 183e17f94d4ae2f72d6bc84063c1c01cf2512eb5 (diff) | |
download | xbyak-864fd0c49ce07fc534b16250758987c445bb9c70.tar.gz xbyak-864fd0c49ce07fc534b16250758987c445bb9c70.zip |
add vaddnepbf16
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 4 | ||||
-rw-r--r-- | test/avx10/bf16.txt | 4 | ||||
-rw-r--r-- | test/avx10/new-ymm.txt (renamed from test/target/avx10.txt) | 0 | ||||
-rw-r--r-- | test/avx10/old.txt (renamed from test/target/misc.txt) | 0 | ||||
-rw-r--r-- | test/test_by_xed.py | 5 |
5 files changed, 10 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile index ca2f0bb..4d0b85d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -60,9 +60,9 @@ apx: apx.cpp $(XBYAK_INC) avx10_test: avx10_test.cpp $(XBYAK_INC) $(CXX) $(CFLAGS) avx10_test.cpp -o $@ -DXBYAK64 -TEST_FILES=avx10.txt misc.txt +TEST_FILES=old.txt new-ymm.txt bf16.txt xed_test: - @for target in $(addprefix target/, $(TEST_FILES)); do ./test_by_xed.sh $$target; done + @for target in $(addprefix avx10/, $(TEST_FILES)); do ./test_by_xed.sh $$target; done test_nm: normalize_prefix $(TARGET) $(MAKE) -C ../gen diff --git a/test/avx10/bf16.txt b/test/avx10/bf16.txt new file mode 100644 index 0000000..1c77f93 --- /dev/null +++ b/test/avx10/bf16.txt @@ -0,0 +1,4 @@ +vaddnepbf16(xm1, xm2, xm3); +vaddnepbf16(ym1|k1, ym2, ptr[rax+128]); +vaddnepbf16(ym1|k1, ym2, ptr_b[rax+128]); +vaddnepbf16(zm1|k2|T_z, zm2, ptr_b[rax+128]); diff --git a/test/target/avx10.txt b/test/avx10/new-ymm.txt index 8ee52ca..8ee52ca 100644 --- a/test/target/avx10.txt +++ b/test/avx10/new-ymm.txt diff --git a/test/target/misc.txt b/test/avx10/old.txt index 9e4f097..9e4f097 100644 --- a/test/target/misc.txt +++ b/test/avx10/old.txt diff --git a/test/test_by_xed.py b/test/test_by_xed.py index 3e4b98f..cd6b7bb 100644 --- a/test/test_by_xed.py +++ b/test/test_by_xed.py @@ -273,7 +273,7 @@ def loadFile(name): r = [] for line in f.read().split('\n'): if line: - if line[0] == '#': + if line[0] == '#' or line.startswith('//'): continue r.append(line) return r @@ -287,6 +287,9 @@ def removeExtraInfo(s): def run(cppText, xedText): cpp = loadFile(cppText) xed = loadFile(xedText) + if len(cpp) != len(xed): + raise Exception(f'different line {len(cpp)} {len(xed)}') + for i in range(len(cpp)): line1 = cpp[i] line2 = removeExtraInfo(xed[i]) |