Commit 988072af10 for qemu.org
commit 988072af105051400d03c05e3c60a65a48cbc5f8
Author: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Date: Wed Sep 23 11:57:25 2026 -0700
tests/tcg/x86_64: speed up compilation of avx, mmx and 3dnow tests
When profiling build of tcg-tests on aarch64 host (compiler running
with qemu-user-binfmt), it was found that those tests were the longest
to compile:
- avx: 1min
- mmx: 8s
- 3dnow: 2s (normal time, but for consistency, apply same flag than
others).
Compiling with -O0 (default), compilation times are reduced by 50% for
those files. Since they use inline assembly, result is unchanged and
optimizations don't matter.
Link: https://lore.kernel.org/qemu-devel/20260923185725.863311-7-pierrick.bouvier@oss.qualcomm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
diff --git a/tests/tcg/x86_64/meson.build b/tests/tcg/x86_64/meson.build
index 787a2ca61b..cfeef1d969 100644
--- a/tests/tcg/x86_64/meson.build
+++ b/tests/tcg/x86_64/meson.build
@@ -31,18 +31,18 @@ tests += {
'../i386/test-i386-ssse3.c': {},
'../i386/test-3dnow.c': {
'cflags': ['-I', meson.current_build_dir(),
- '-masm=intel', '-O'],
+ '-masm=intel'],
'depends': [test_3dnow_h],
},
'../i386/test-avx.c': {
'cflags': ['-I', meson.current_build_dir(),
- '-mavx', '-masm=intel', '-O'],
+ '-mavx', '-masm=intel'],
'depends': [test_avx_h],
},
'../i386/test-flags.c': {},
'../i386/test-mmx.c': {
'cflags': ['-I', meson.current_build_dir(),
- '-masm=intel', '-O'],
+ '-masm=intel'],
'depends': [test_mmx_h],
},
'../i386/test-i386.c': {