[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 12/17] tests/tcg: add a configure compiler check for ARMv8.1 a
From: |
Alex Bennée |
Subject: |
[PATCH v3 12/17] tests/tcg: add a configure compiler check for ARMv8.1 and SVE |
Date: |
Mon, 3 Feb 2020 09:09:27 +0000 |
We will need this for some tests later. The docker images already
support it by default.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
tests/tcg/configure.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index 210e68396f2..e0d1fbb182f 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -216,6 +216,20 @@ for target in $target_list; do
echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak
fi
echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak
+
+ # Test for compiler features for optional tests. We only do this
+ # for cross compilers because ensuring the docker containers based
+ # compilers is a requirememt for adding a new test that needs a
+ # compiler feature.
+ case $target in
+ aarch64-*)
+ if do_compiler "$target_compiler" $target_compiler_cflags \
+ -march=armv8.1-a+sve -o $TMPE $TMPC; then
+ echo "CROSS_CC_HAS_SVE=y" >> $config_target_mak
+ fi
+ ;;
+ esac
+
enabled_cross_compilers="$enabled_cross_compilers $target_compiler"
got_cross_cc=yes
break
--
2.20.1
- [PATCH v3 01/17] tests/docker: move most cross compilers to buster base, (continued)
- [PATCH v3 01/17] tests/docker: move most cross compilers to buster base, Alex Bennée, 2020/02/03
- [PATCH v3 02/17] tests/docker: better handle symlinked libs, Alex Bennée, 2020/02/03
- [PATCH v3 03/17] gitlab-ci: Refresh the list of iotests, Alex Bennée, 2020/02/03
- [PATCH v3 04/17] travis.yml: Install genisoimage package, Alex Bennée, 2020/02/03
- [PATCH v3 05/17] .shippable: --disable-docs for cross-compile tests, Alex Bennée, 2020/02/03
- [PATCH v3 06/17] hw/hppa/Kconfig: LASI chipset requires PARALLEL port, Alex Bennée, 2020/02/03
- [PATCH v3 07/17] .travis.yml: Drop superfluous use of --python=python3 parameter, Alex Bennée, 2020/02/03
- [PATCH v3 09/17] .travis.yml: build documents under bionic, Alex Bennée, 2020/02/03
- [PATCH v3 10/17] .travis.yml: move cache flushing to early common phase, Alex Bennée, 2020/02/03
- [PATCH v3 08/17] .travis.yml: Add description to each job, Alex Bennée, 2020/02/03
- [PATCH v3 12/17] tests/tcg: add a configure compiler check for ARMv8.1 and SVE,
Alex Bennée <=
- [PATCH v3 14/17] .travis.yml: introduce TEST_BUILD_CMD and use it for check-tcg, Alex Bennée, 2020/02/03
- [PATCH v3 11/17] .travis.yml: probe for number of available processors, Alex Bennée, 2020/02/03
- [PATCH v3 13/17] tests/tcg: gate pauth-% tests on having compiler support, Alex Bennée, 2020/02/03
- [PATCH v3 16/17] .travis.yml: drop cris-linux-user from the plugins test, Alex Bennée, 2020/02/03
- [PATCH v3 15/17] .travis.yml: drop the travis_retry from tests, Alex Bennée, 2020/02/03
- [PATCH v3 17/17] .travis.yml: single thread build-tcg, Alex Bennée, 2020/02/03