mirror of
https://github.com/qemu/qemu.git
synced 2026-11-06 20:04:47 +00:00
tests/tcg/mipsel/mips32r5el: add msa tests
Due to missing toolchain, we don't add those tests for tests/tcg/mips. Considering this variant is not widely used, it makes sense. Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Link: https://lore.kernel.org/qemu-devel/20260929212439.110454-24-pierrick.bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
This commit is contained in:
@@ -457,6 +457,10 @@ option('tcg_tests_cross_cc_mips64el', type: 'string',
|
||||
description: 'cc for mips64el tcg tests')
|
||||
option('tcg_tests_cross_cflags_mips64el', type: 'string',
|
||||
description: 'cflags for mips64el tcg tests')
|
||||
option('tcg_tests_cross_cc_mips32r5el', type: 'string',
|
||||
description: 'cc for mips32r5el tcg tests')
|
||||
option('tcg_tests_cross_cflags_mips32r5el', type: 'string',
|
||||
description: 'cflags for mips32r5el tcg tests')
|
||||
option('tcg_tests_cross_cc_or1k', type: 'string',
|
||||
description: 'cc for or1k tcg tests')
|
||||
option('tcg_tests_cross_cflags_or1k', type: 'string',
|
||||
|
||||
@@ -538,6 +538,7 @@ _meson_option_parse() {
|
||||
--tcg-tests-cross-cc-loongarch64=*) quote_sh "-Dtcg_tests_cross_cc_loongarch64=$2" ;;
|
||||
--tcg-tests-cross-cc-m68k=*) quote_sh "-Dtcg_tests_cross_cc_m68k=$2" ;;
|
||||
--tcg-tests-cross-cc-mips=*) quote_sh "-Dtcg_tests_cross_cc_mips=$2" ;;
|
||||
--tcg-tests-cross-cc-mips32r5el=*) quote_sh "-Dtcg_tests_cross_cc_mips32r5el=$2" ;;
|
||||
--tcg-tests-cross-cc-mips64=*) quote_sh "-Dtcg_tests_cross_cc_mips64=$2" ;;
|
||||
--tcg-tests-cross-cc-mips64el=*) quote_sh "-Dtcg_tests_cross_cc_mips64el=$2" ;;
|
||||
--tcg-tests-cross-cc-mips64r6=*) quote_sh "-Dtcg_tests_cross_cc_mips64r6=$2" ;;
|
||||
@@ -563,6 +564,7 @@ _meson_option_parse() {
|
||||
--tcg-tests-cross-cflags-loongarch64=*) quote_sh "-Dtcg_tests_cross_cflags_loongarch64=$2" ;;
|
||||
--tcg-tests-cross-cflags-m68k=*) quote_sh "-Dtcg_tests_cross_cflags_m68k=$2" ;;
|
||||
--tcg-tests-cross-cflags-mips=*) quote_sh "-Dtcg_tests_cross_cflags_mips=$2" ;;
|
||||
--tcg-tests-cross-cflags-mips32r5el=*) quote_sh "-Dtcg_tests_cross_cflags_mips32r5el=$2" ;;
|
||||
--tcg-tests-cross-cflags-mips64=*) quote_sh "-Dtcg_tests_cross_cflags_mips64=$2" ;;
|
||||
--tcg-tests-cross-cflags-mips64el=*) quote_sh "-Dtcg_tests_cross_cflags_mips64el=$2" ;;
|
||||
--tcg-tests-cross-cflags-mips64r6=*) quote_sh "-Dtcg_tests_cross_cflags_mips64r6=$2" ;;
|
||||
|
||||
@@ -189,3 +189,29 @@ if 'qemu-mipsel' in emulators
|
||||
}
|
||||
}
|
||||
endif
|
||||
|
||||
tests = []
|
||||
|
||||
foreach src: tests_mips_msa
|
||||
tests += {
|
||||
src: {
|
||||
'cflags': ['-mabi=32', '-march=mips32r5', '-mmsa', '-mno-odd-spreg',
|
||||
'-mfp64', '-mnan=2008'],
|
||||
'qemu_args': ['-cpu', 'P5600'],
|
||||
}
|
||||
}
|
||||
endforeach
|
||||
|
||||
if 'qemu-mipsel' in emulators
|
||||
tcg_tests += {
|
||||
'mips32r5el-linux-user': {
|
||||
'cc': 'mips32r5el-buildroot-linux-gnu-gcc',
|
||||
'cc_dockerfile': 'debian-all-test-cross',
|
||||
'cc_feat_cflags': cc_feat_cflags,
|
||||
'folder': 'mipsel',
|
||||
'gdb_arch': 'mipsel',
|
||||
'qemu': emulators['qemu-mipsel'],
|
||||
'tests': tests,
|
||||
}
|
||||
}
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user