From patchwork Fri Dec 20 12:04:30 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: 182251 Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp445707ilf; Fri, 20 Dec 2019 04:14:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxew2gUMc+rNNXbGF6EaXx6KGXoA4zBWpn1OTOj/SR6LX5LsyWhFv5Y0J8uqVO4FRjwrd5L X-Received: by 2002:a9d:7ac9:: with SMTP id m9mr14139183otn.80.1576844089957; Fri, 20 Dec 2019 04:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576844089; cv=none; d=google.com; s=arc-20160816; b=eR28eLMgdI+B/M8N+XWAHYX3b7Pp32if+K9Hxb9IiXr0UQv2vBR33ld7LtOnbP3cja 6rvJgW3Y5WkrkzL0Mu3m6GbwxPsXagQtxs74abcKazga+sVdHQzkRLnV6MTcUJfrJZl9 +/hrioQRUW4EgM+IBMRo9YBGemh09LfMIpRp1uniB/T4jR6qMYq6GSbi23fO5BJqbFWO Kc7BzouM6wS3GFBw6rFm9Lu08GoXdlJpG2hVg0wI0Ay0GcDAeYxupPweDcnKuqWBDJDV 3YP3fVEf4MeAsqiSiV+WaKaHK5cYXTYcpxOT1G4w6NZFsYLLde9+TwbUcf3Vnz/B5G7K Y/iA== 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=Mqhw4oMb9/NPBlcysMR2z8rn68YPooniQZ6sAVo6tJ0=; b=togXYFWiDHjaH/A2MomM7jHh7BfryoDx4ee9h18JDy+nNJtVUF+7bvyTA1ONuJlmx2 Yf3eF+F8xcz1a66mzVljV6oeWQWW5jwJvCUiL8wkqKP5LSqqJB8dzf9vXkfd9ZKYo7jk PHAKFm8g5zpGc8UyEmBSoIEbhwcJY8nOBnok6C2JBg/dLyNnGozV2AArM9F3hXZJs6jk JACv3fVLWFfky4EWgvUB25zXTC3Z1cUwma+5xqml4oEvJK2fzJ+NRxGof9MRMdVSWnUa rQJUhDTzo7nutzZHw3UcoLOpkenGsG86nW5FHo0WpNgo7cnjfYKANkreLv1u8ZE4aoYn mcng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZjNjiRx8; 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 i12si5200311otk.215.2019.12.20.04.14.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Dec 2019 04:14:49 -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=ZjNjiRx8; 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]:54168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiHBA-0000nE-UU for patch@linaro.org; Fri, 20 Dec 2019 07:14:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36324) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiHAs-0000eI-41 for qemu-devel@nongnu.org; Fri, 20 Dec 2019 07:14:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiHAq-0001Hi-Rc for qemu-devel@nongnu.org; Fri, 20 Dec 2019 07:14:29 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:55698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iiHAq-0001D4-DQ for qemu-devel@nongnu.org; Fri, 20 Dec 2019 07:14:28 -0500 Received: by mail-wm1-x342.google.com with SMTP id q9so8723044wmj.5 for ; Fri, 20 Dec 2019 04:14:28 -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=Mqhw4oMb9/NPBlcysMR2z8rn68YPooniQZ6sAVo6tJ0=; b=ZjNjiRx8twV7r7+gDAfFetdXMlwhJqPIbx6ucz1bkg2WTBQ65zsfXdZ6bWzGg75osI RveYQ69dK0KRWzVlr3gAANejDTCO64FH6EL9b2yVg0r6cxKTVjJmKgalnVs/ItXs/ntF ZiVEUaxfhtoseX0kfUa/hRkvCcR850ZvKCguWrAhZVzC29VPnHB+5/+aRgH82mguyjlZ l7tTyKH0C6cpSl16+rcUKLr+yPYwZQXlNJ2j2gff//6IOWb+yDcTnM105NcBEpg8gxNW Xrst8kRSTF6jTMtz0VrZrKr2LG83544ls95VrKT5lihLI9ozgPGjgPR/9S0TFyHcgQVc NQ3w== 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=Mqhw4oMb9/NPBlcysMR2z8rn68YPooniQZ6sAVo6tJ0=; b=PeNL8FJUbIDxiZ8cnwsvwjygV8fT6pakWnCNNrAdnVJTqvzCwgmuzKOUkwAf/lfnE2 8DLahxGOU2VQqWGL96YxAvmoSwLM7ujWAiSOYwPvKBkeC4Cb5bNKpWEhAxHxT0bXSZN/ r2oLndpNA460N5TxCZExYPjfe0S/B6ui/HzLU/gk0oT53cUnbvhiWNUX1S6d1cXMcimX JqIBg44Z1jsL05Es4BlqWpzyBvYLQpQDzeL8BVBrZ5iWblUxgj0EjvXfPOU5or8dnDRn TaxWxBSLkaY+QX8IEo6ZfJwDZkoniOShWzM2bvBz6b4H+hJcowMWa8nKD6hyACnnbtVJ kc3g== X-Gm-Message-State: APjAAAUTvKpQS9mMGQuls4NP/dBiU3XasGFq0e+p0lglbkBrs3X/WmFE l78EVlufT1aYZtqX5eK/yspJqQ== X-Received: by 2002:a05:600c:54b:: with SMTP id k11mr15752965wmc.63.1576844067287; Fri, 20 Dec 2019 04:14:27 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id o4sm9334239wrx.25.2019.12.20.04.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 04:14:25 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 585F51FF9D; Fri, 20 Dec 2019 12:04:40 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v4 13/21] tests/tcg: add a configure compiler check for ARMv8.1 and SVE Date: Fri, 20 Dec 2019 12:04:30 +0000 Message-Id: <20191220120438.16114-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191220120438.16114-1-alex.bennee@linaro.org> References: <20191220120438.16114-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::342 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, =?utf-8?q?Alex_Benn=C3=A9e?= , luis.machado@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 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