tests/tcg: i386: extend BMI test
PATCH 1/1 tests/tcg: i386: extend BMI test
Cover all BMI1 and BMI2 instructions, both 32- and 64-bit.
Due to the use of inlines, the test now has to be compiled with -O2.
Signed-off-by Paolo Bonzini <[email protected]>
--- tests/tcg/i386/Makefile.target | 1 + tests/tcg/i386/test-i386-bmi2.c | 169 ++++++++++++++++++++++++++++++-- 2 files changed, 162 insertions(+), 8 deletions(-)
tests/tcg/i386/Makefile.target +1 -0
@@ -18,6 +18,7 @@ test-i386-pcmpistri: CFLAGS += -msse4.2 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max run-plugin-test-i386-pcmpistri-%: QEMU_OPTS += -cpu max +test-i386-bmi2: CFLAGS=-O2 run-test-i386-bmi2: QEMU_OPTS += -cpu max run-plugin-test-i386-bmi2-%: QEMU_OPTS += -cpu max
tests/tcg/i386/test-i386-bmi2.c +161 -8
199 lines not on this page · raw message
Signature · 1 line
2.37.1
Quoted 9 lines · Paolo Bonzini
Cover all BMI1 and BMI2 instructions, both 32- and 64-bit.
Due to the use of inlines, the test now has to be compiled with -O2.
Signed-off-by Paolo Bonzini <[email protected]>--- tests/tcg/i386/Makefile.target | 1 + tests/tcg/i386/test-i386-bmi2.c | 169 ++++++++++++++++++++++++++++++-- 2 files changed, 162 insertions(+), 8 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~