From patchwork Wed Dec 11 17:05:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 181305 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp818920ile; Wed, 11 Dec 2019 09:22:59 -0800 (PST) X-Google-Smtp-Source: APXvYqycoHUnfj80Ac3p5/6Lww0IHuFVSB67QfIxEwbzj1g8yx9Oyrg5+qXXitK5FPkskZZmagut X-Received: by 2002:a37:5d1:: with SMTP id 200mr3961521qkf.492.1576084979546; Wed, 11 Dec 2019 09:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576084979; cv=none; d=google.com; s=arc-20160816; b=gQm2KkJvxP9xa48BLSOsGlSxkLeIK/vX3TG1kvNf4Ahoueo6C9EIuFoSjvUKPWfh1U J40lgNMx2XcCI63yo+LokqCPYmJB3JT64VjDhEDhMuEzeGnuHDIEvyt9ZXUtyZNMITdm gb77Vifo48jKqqcQYjuR5lR59WTHJWNDA+PsUBPsS2NliD1L1fj2yQifqKfBvZEaUv7W YD8Kz/pnjgkz3GIedhdje+9GtPoHUei+LQNYmJK8RYUG3U5vdZxag86mffxCeAQYYBej akQN7rUZOE1C1Rziw/yvP6NeUMWn7yG9C9iSYco53USRdYtwZKqd8iKiXZ7NjHy5qaaT n+zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=j13MxIT63cJVQtqoXk9rT91dRsa42qzR98g1LmrKW3s=; b=HWrkGGgwWV8IU2x/VCLn5ApVogkMFJVHScvCUpVJlbYG1eg8KQp/I1hYajDO1zONHD HH0DUAe43iaJEqNHxxlcs2mbQ92px3J8rftkmWr+YoSn8K/3HH+7I2xk8yjpxUWTOufx sUi+zJA0SAsF4zbZ98tmZklFfrVNKElnHiyBshjmqJawUVJJDRePf9eLd2eqm8AwJveS 9zNxloeSIZig3oZnMD2ht/g3B13tKJnL8Z2+G82NaQb72dZz1kzDCQw5C6C0BGCxeR3y CiqEzCynWyuxOb77wnjEjcHe9Md1PNfFPuLBKwnVCYfScwQtPsiwmG7AXXTjfJX0wWDx IsPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=szfytI2x; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i17si1467296qki.168.2019.12.11.09.22.59 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2019 09:22:59 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=szfytI2x; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if5hS-0006sB-VR for patch@linaro.org; Wed, 11 Dec 2019 12:22:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40125) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if5Qk-0005Gm-Lu for qemu-devel@nongnu.org; Wed, 11 Dec 2019 12:05:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if5Qi-0003Sj-3r for qemu-devel@nongnu.org; Wed, 11 Dec 2019 12:05:42 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:39582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1if5Qh-0003RZ-LJ for qemu-devel@nongnu.org; Wed, 11 Dec 2019 12:05:39 -0500 Received: by mail-wr1-x442.google.com with SMTP id y11so24840718wrt.6 for ; Wed, 11 Dec 2019 09:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j13MxIT63cJVQtqoXk9rT91dRsa42qzR98g1LmrKW3s=; b=szfytI2xfhQGFPkJUKKT1ZNdYFU3Cua+yEo1hEn1l8LkAr+LLIl8Tlm42ZbpQ45J2T 56GCiJRFgnrscbDRgrNiSnklYL50gXT9Akq0CFZ9BnHZxyexl0Bjy7OdF6uts4LBc8au zuK9Z7IQtZwCEkK4IFj//cOtSQIVob9rRQQMxCV5zc6V6kg34SuQPVLpG+byqseUnK4x IlyN8pSsnu7aeQ/E4YHQcZrRjqjYS7a+4yK4Zn3MmVrvElCvnFB1x599Z5phmTRcyjcY uYr5WMq5jpsdtzaLt1focgexq+zfL0LtEeEaLCWg8a3w1SI/Ts9UtY0DbaqJhT0dw2SO Etvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j13MxIT63cJVQtqoXk9rT91dRsa42qzR98g1LmrKW3s=; b=I7ylJ5f1vY0Ly7uShuvO58oIYl1YUWgfPkb2yiMlgb8/iEMtjJXfJhNX4n/LNYTg2X 3XFsaxKz1Z7Kb5XVEW67KScBpDdLNboL1WR0e4tfAhZu8NAwyzHmodMA0FQQgVDPWpKd fqMml5Rh5MuMFXxEQ2Vz7E7DPmh69MAYsOOjwaWXee8EpoldKs1eR3FY2dIyh/3Zm4qE ViI8k320cbsdkubrMIT2qkDTFBKaBAl3sZJEecIbMbHlGsr+zGLUmNnY1U/1xlJD0zRo B9Twp8frPdp37CZSpfobkJSUH5sjP2uBtzo/isUA5wJ/q0+phtIcFH31DFoOLWWjLzLv rKCQ== X-Gm-Message-State: APjAAAUJW4VitKNGLaKbm8SRJDtc5lMVf+eHUEeHkxSSma1nSoCmrKO2 i+iwAewM9X9FK53ZWTNW4P8rFA== X-Received: by 2002:adf:b591:: with SMTP id c17mr881914wre.108.1576083938527; Wed, 11 Dec 2019 09:05:38 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l17sm2853519wme.45.2019.12.11.09.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 09:05:30 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E587F1FF9C; Wed, 11 Dec 2019 17:05:23 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 13/20] tests/tcg: add a configure compiler check for ARMv8.1 and SVE Date: Wed, 11 Dec 2019 17:05:13 +0000 Message-Id: <20191211170520.7747-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191211170520.7747-1-alex.bennee@linaro.org> References: <20191211170520.7747-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: damien.hedde@greensocs.com, luis.machado@linaro.org, =?utf-8?q?Alex_Be?= =?utf-8?b?bm7DqWU=?= , richard.henderson@linaro.org, alan.hayward@arm.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We will need this for some tests later. The docker images already support it by default. Signed-off-by: Alex Bennée --- tests/tcg/configure.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.20.1 diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 6c4a471aeae..79140db6684 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -214,6 +214,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