tests/tcg: i386: add MMX and 3DNow! tests
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Sep 2022 23:38:07 +0000 (01:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Sep 2022 13:14:40 +0000 (15:14 +0200)
commitfa7ce0b0282300c8c06a6c6857949168ec31a762
tree685750ce7f0c3fabae52f9484acbeb13a34a5b3b
parent4ce4a1a71452028960d641438bb5289cff410ae8
tests/tcg: i386: add MMX and 3DNow! tests

Adjust the test-avx.py generator to produce tests specifically for
MMX and 3DNow.  Using a separate generator introduces some code
duplication, but is a simpler approach because of test-avx's extra
complexity to support 3- and 4-operand AVX instructions.

If needed, a common library can be introduced later.

While at it, for consistency move all the -cpu max rules to the
same place.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/tcg/i386/Makefile.target
tests/tcg/i386/test-3dnow.c [new file with mode: 0644]
tests/tcg/i386/test-avx.py
tests/tcg/i386/test-mmx.c [new file with mode: 0644]
tests/tcg/i386/test-mmx.py [new file with mode: 0755]
tests/tcg/x86_64/Makefile.target