diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2025-03-04 22:24:23 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2025-03-10 10:30:01 +0000 |
commit | 874c712dc148142dfdaf2589d66a17391fe331f1 (patch) | |
tree | 20eaea49d6233d332f5ad1dc42ed53922a32a44a | |
parent | 77f005f954ea3cd0a161618a9f6c3f9d874c5b58 (diff) | |
download | qemu-874c712dc148142dfdaf2589d66a17391fe331f1.zip qemu-874c712dc148142dfdaf2589d66a17391fe331f1.tar.gz qemu-874c712dc148142dfdaf2589d66a17391fe331f1.tar.bz2 |
tests/tcg: enable -fwrapv for test-i386-bmi
We allow things like:
tests/tcg/i386/test-i386-bmi2.c:124:35: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
assert(result == (mask & ~(-1 << 30)));
in the main code, so allow it for the test.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250304222439.2035603-17-alex.bennee@linaro.org>
-rw-r--r-- | tests/tcg/i386/Makefile.target | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index bbe2c44..f1df404 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -22,7 +22,7 @@ run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max test-i386-pcmpistri: CFLAGS += -msse4.2 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max -test-i386-bmi2: CFLAGS=-O2 +test-i386-bmi2: CFLAGS=-O2 -fwrapv run-test-i386-bmi2: QEMU_OPTS += -cpu max test-i386-adcox: CFLAGS=-O2 |