Skip to content

Commit

Permalink
Add tests for AMD Zen 4 and Xeon Platinum 8480+
Browse files Browse the repository at this point in the history
Signed-off-by: Sv. Lockal <[email protected]>
  • Loading branch information
AngryLoki committed Jan 21, 2024
1 parent 81ff8cc commit bc806d2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ TESTS = \
tests/x86/i3-ivybridge.txt \
tests/x86/opteron-6272.txt \
tests/x86/xeon-e-2176g.txt \
tests/x86/xeon-silver-4410.txt
tests/x86/xeon-silver-4410.txt \
tests/x86/amd-zen4.txt \
tests/x86/xeon-platinum-8480plus.txt

EXTRA_DIST = $(TESTS) tests/test.sh
1 change: 1 addition & 0 deletions src/x86-dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int main(int argc, char* argv[])
dump(0x00000001);
/* Intel ext. */
dump_leaf(0x00000007, 0x00000000);
dump_leaf(0x00000007, 0x00000001);
/* AMD */
dump(0x80000001);
/* Centaur (VIA) */
Expand Down
5 changes: 5 additions & 0 deletions tests/x86/amd-zen4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
expected:aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq
top:00000001:00a60f12:1f200800:7ef8320b:178bfbff
sub:00000007:00000000:00000001:f1bf97a9:00405fde:10000010
sub:00000007:00000001:00000020:00000000:00000000:00000000
top:80000001:00a60f12:00000000:75c237ff:2fd3fbff
5 changes: 5 additions & 0 deletions tests/x86/xeon-platinum-8480plus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
expected:aes avx avx2 avx512_bf16 avx512_bitalg avx512_fp16 avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq
top:00000001:000806f8:8b800800:7ffefbff:bfebfbff
sub:00000007:00000000:00000002:f3bfb7ef:fb417ffe:ffdd4432
sub:00000007:00000001:00001c30:00000000:00000000:00040000
top:80000001:00000000:00000000:00000121:2c100800

0 comments on commit bc806d2

Please sign in to comment.