From nobody Thu Nov 13 14:54:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1580721445617871.2743682001666; Mon, 3 Feb 2020 01:17:25 -0800 (PST) Received: from localhost ([::1]:36732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyXrA-0002mg-FK for importer@patchew.org; Mon, 03 Feb 2020 04:17:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47839) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyXjw-0007Cv-Gf for qemu-devel@nongnu.org; Mon, 03 Feb 2020 04:09:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyXjv-0001Jx-9Q for qemu-devel@nongnu.org; Mon, 03 Feb 2020 04:09:56 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:39756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyXjv-0001JI-2u for qemu-devel@nongnu.org; Mon, 03 Feb 2020 04:09:55 -0500 Received: by mail-wm1-x32b.google.com with SMTP id c84so15953879wme.4 for ; Mon, 03 Feb 2020 01:09:55 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b13sm10107786wrq.48.2020.02.03.01.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 01:09:48 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7EB001FF9D; Mon, 3 Feb 2020 09:09:33 +0000 (GMT) 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=VwZpL5U6qDCdNJrjf9NYp5QpUgNZfUar63YIMPVfZmY=; b=AOSerxc0RZJ0xynPKOlfM2ydpEidGiJHGqai4hBdEZLp+3FklJ3SVPJUN3tQX57Jw5 Ph7Lb/2vN4AblWgnlFOX/2D8EjRlDnQG6Gbw7Fjv74ihP3iWcESAo17zx7cPO/s+qwmx XMGkPf96W1y16M8mX37VZt11tJ+nqS2i/tj1+DMHIDcenngEZ509ZiBM3hBz0GPx6Zyn JDb9eEtQ7pfRDmA9xRD6aG4GRrRM3ko3mSoFrnhYrzdh689O9oYSpqj2FUgnDfRqKqZ5 0AuP+k/S7+Y609SGhEy5a80iATsFsUUAD8Hvf/8RXfPh6qh/2pWeWDEl2qbwUpB5J9Vr 96Mw== 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=VwZpL5U6qDCdNJrjf9NYp5QpUgNZfUar63YIMPVfZmY=; b=JFHLF9imOXnJ+ocTQndk1N73pOdLx5GnKeb1Dhuqm+oREAwbnLiIo/guO4QAcMCOcP x01fQnbtp2i9I1dn8dA3B8LYQ2gWZTun/O0YTAOjPxls1seLUFy5X5NCsBx62qtopOVQ uJrPykSqOueJuUvNUQw2SWyvJHmQooeBO9rfIaOXfN7siLNWp18GYJoi+tQGGatR4EiP ivBQiPM/yPqs/se9c5ehzEoVVBW2Xc1tAaUbcFhngwNYYnJlgvzrgVMb7OcGto25T+9H okVcCMF9X78IgLwjt9FU5pV1OSUqe4w00iSCDsLYiV+Rc299Vp0NL50NM86zfpS85wyO PsJA== X-Gm-Message-State: APjAAAUsMoV2dvry/D62z/HsWFB+VdERtuk+NhXM9/HV5EJDh37fg9Yn DWEzOb7MWD4dYfvvtQgly4NO0w== X-Google-Smtp-Source: APXvYqy07o2tKQPgVOHm03n1fw9egosT0kFzPVaTnlI/AYDDtMI8zrntt33xB2RVwsgUin9MVRL/eg== X-Received: by 2002:a05:600c:118a:: with SMTP id i10mr28477908wmf.142.1580720994073; Mon, 03 Feb 2020 01:09:54 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 13/17] tests/tcg: gate pauth-% tests on having compiler support Date: Mon, 3 Feb 2020 09:09:28 +0000 Message-Id: <20200203090932.19147-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200203090932.19147-1-alex.bennee@linaro.org> References: <20200203090932.19147-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b 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: fam@euphon.net, Peter Maydell , berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, "open list:ARM TCG CPUs" , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Otherwise we end up failing to build our tests on CI which may have older compilers that the user expects. We can get rid of this once we can fallback to multiarch containers. Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/aarch64/Makefile.softmmu-target | 12 +++++++++--- tests/tcg/aarch64/Makefile.target | 2 ++ tests/tcg/configure.sh | 4 ++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/= Makefile.softmmu-target index f6b5121f5ce..d2299b98b76 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -61,7 +61,13 @@ run-memory-replay: memory-replay run-memory-record $(QEMU_OPTS) memory, \ "$< on $(TARGET_NAME)") =20 -run-pauth-3: pauth-3 -pauth-3: CFLAGS +=3D -march=3Darmv8.3-a +EXTRA_TESTS+=3Dmemory-record memory-replay =20 -EXTRA_TESTS+=3Dmemory-record memory-replay pauth-3 +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_3),) +pauth-3: CFLAGS +=3D -march=3Darmv8.3-a +else +pauth-3: + $(call skip-test, "BUILD of $@", "missing compiler support") +run-pauth-3: + $(call skip-test, "RUN of pauth-3", "not built") +endif diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index efa67cf1e9e..8ed477d0d51 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -18,9 +18,11 @@ run-fcvt: fcvt $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref) =20 # Pauth Tests +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_3),) AARCH64_TESTS +=3D pauth-1 pauth-2 pauth-4 run-pauth-%: QEMU_OPTS +=3D -cpu max pauth-%: CFLAGS +=3D -march=3Darmv8.3-a +endif =20 # Semihosting smoke test for linux-user AARCH64_TESTS +=3D semihosting diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index e0d1fbb182f..9eb6ba3b7ea 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -227,6 +227,10 @@ for target in $target_list; do -march=3Darmv8.1-a+sve -o $TMPE $TMPC; then echo "CROSS_CC_HAS_SVE=3Dy" >> $config_target_mak fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=3D-march=3Darmv8.3-a -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_ARMV8_3=3Dy" >> $config_target_mak + fi ;; esac =20 --=20 2.20.1