Skip to contentSkip to conversation

tests/tcg: i386: extend BMI test

PATCH In review Paolo Bonzini 2 participants 2 messages Aug 25, 2022

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 5614838ffc..646b4ac13e 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

---
  tests/tcg/i386/Makefile.target  |   1 +
  tests/tcg/i386/test-i386-bmi2.c | 169 ++++++++++++++++++++++++++++++--
  2 files changed, 162 insertions(+), 8 deletions(-)

r~