From nobody Sun Nov 24 23:30:22 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1720193613; cv=none; d=zohomail.com; s=zohoarc; b=JBjeoSKjlbi1pN90FM+971ROzH/wCp40o3DR/djLq6jkyU68eZFdThj/PUHWNtyYaaWX0QGS80CzWsLOA8JK1N/uu41a+/IK3VhJYB60SFMiaZmukbPOcS+4qFRLntueiWR90d/fKKusGiMPbPuflmx1GiVrDtYKBctbC/bWuus= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193613; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GTAwyE/pG5nM9OTzmL49b7cH+p8g0kVoInrpYccmZCc=; b=IJimcmE5TLHrLPLQt+MSqObaehoJiRaqoad5k34+dfEG/LJ2DCAP81kf/lp1KRQ7QNBcSndT6w9itv1UQMg61DY70QaQX7q3Hf5pvAzEfup6KeNH3x48wRocolLKFxmkIMn+WrURbyq1r/pCuyqCoJWePC9GGT7KfBAjhyArjpA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720193613854695.126082553738; Fri, 5 Jul 2024 08:33:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku2-0005iv-CW; Fri, 05 Jul 2024 11:31:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPktx-0005eY-0K for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:09 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktt-0000QA-2I for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:08 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-58bac81f40bso2512540a12.1 for ; Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77cd9cb2f7sm56529166b.29.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A793F5F9EB; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193463; x=1720798263; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GTAwyE/pG5nM9OTzmL49b7cH+p8g0kVoInrpYccmZCc=; b=DIIagwuwpRqGQUSR/EpaflWq+x1InpfElgZszgSM+eIs+ixc0ac+PVQKMDuCNQkTwm SYURl4/yFJYneVcupwv/8CEE1aMvuqnqEfQSWE0IHIokPqNA/tnO82XZtTz9qPR536Yd bZzutQZvuW8YDFf3E8VMX8xvh9SsZtBHKr/HENxAszHj2OP8HPBMvMl6JC5FWODVLTw4 8szC9jpDk9GaLPGeb2dp4JLjGjb+YYS1at211x5LnxDJKWF/NK/zmyraazIjtryyZyZo /QlP6rBq6GHLQwP6wh9e5cySJFNnBu7nI5Ixe6KbfyuutF90hwAzC5GX189+s2hYQYUA /yVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193463; x=1720798263; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GTAwyE/pG5nM9OTzmL49b7cH+p8g0kVoInrpYccmZCc=; b=MSkpHDDou/jwLV5LMEwXwOMUxx8bZCoD8DN2qDrO1Qqm0IVfCrPTKUvEotvyQaXDzA ZGgzA2zHCK8c5MorbfIMdYuSsBGozF/zwOwS6xHSw06/neRaLuolGx9DowNou9nxFKMP ftruEuNZ4fOKd98GJgBUX8lIJZdMnjCbuCr4tvkiuQNqFbSpvFb/pLYb2d4ctgRanQ5j SCs7zN0JRhnIpRBFxQ9oG008PqxktTQCsaA2FX7FqH88AFQ2QW4wLpbIr2I4BRt4rQ/h 9CKnYqJbWNF2t1PiaYIKrA7FFheS5VU+Ppp8JaqXOAHVxGcmwh1xzULOXOvhQiORlZZ1 24MQ== X-Gm-Message-State: AOJu0Yx0BqEHUcL7LPeOEw/UAAVB2Zjox9JBS5cpv1V/8tDTmjkxtIHm 9dOgn9XDrmMUBKz3TgQSBum/cML4HmK2+8ElCg/XOdaGAoZ2C6hIy4iigbv2cG8= X-Google-Smtp-Source: AGHT+IH4KvaHkGHjYJ2QdqXFIse5w11479ab7AnM4yrPTvgSNADSewV7I7Z3yj4Pmkx422hZymKx6w== X-Received: by 2002:a17:906:4794:b0:a72:87c4:8fbe with SMTP id a640c23a62f3a-a77ba46bba9mr393737166b.21.1720193463004; Fri, 05 Jul 2024 08:31:03 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 07/40] tests/tcg: Adjust variable defintion from cc-option Date: Fri, 5 Jul 2024 16:30:19 +0100 Message-Id: <20240705153052.1219696-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193615746100004 From: Richard Henderson Define the variable to the compiler flag used, not "y". This avoids replication of the compiler flag itself. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-3-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-8-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index f21be50d3b..cb8cfeb6da 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -49,7 +49,7 @@ quiet-command =3D $(call quiet-@,$2,$3)$1 =20 cc-test =3D $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>&1 cc-option =3D if $(call cc-test, $1); then \ - echo "$(TARGET_PREFIX)$1 detected" && echo "$(strip $2)=3Dy" >&3; else= \ + echo "$(TARGET_PREFIX)$1 detected" && echo "$(strip $2)=3D$(strip $1)"= >&3; else \ echo "$(TARGET_PREFIX)$1 not detected"; fi =20 # $1 =3D test name, $2 =3D cmd, $3 =3D desc diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/= Makefile.softmmu-target index 4b03ef602e..39d3f961c5 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -81,7 +81,7 @@ run-memory-replay: memory-replay run-memory-record EXTRA_RUNS+=3Drun-memory-replay =20 ifneq ($(CROSS_CC_HAS_ARMV8_3),) -pauth-3: CFLAGS +=3D -march=3Darmv8.3-a +pauth-3: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_3) else pauth-3: $(call skip-test, "BUILD of $@", "missing compiler support") diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index 4ecbca6a41..11ccde5579 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -32,17 +32,17 @@ config-cc.mak: Makefile =20 ifneq ($(CROSS_CC_HAS_ARMV8_2),) AARCH64_TESTS +=3D dcpop -dcpop: CFLAGS +=3D -march=3Darmv8.2-a +dcpop: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_2) endif ifneq ($(CROSS_CC_HAS_ARMV8_5),) AARCH64_TESTS +=3D dcpodp -dcpodp: CFLAGS +=3D -march=3Darmv8.5-a +dcpodp: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_5) endif =20 # Pauth Tests ifneq ($(CROSS_CC_HAS_ARMV8_3),) AARCH64_TESTS +=3D pauth-1 pauth-2 pauth-4 pauth-5 test-2375 -pauth-%: CFLAGS +=3D -march=3Darmv8.3-a +pauth-%: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_3) test-2375: CFLAGS +=3D -march=3Darmv8.3-a run-pauth-1: QEMU_OPTS +=3D -cpu max run-pauth-2: QEMU_OPTS +=3D -cpu max @@ -55,7 +55,7 @@ endif # bti-1 tests the elf notes, so we require special compiler support. ifneq ($(CROSS_CC_HAS_ARMV8_BTI),) AARCH64_TESTS +=3D bti-1 bti-3 -bti-1 bti-3: CFLAGS +=3D -fno-stack-protector -mbranch-protection=3Dstanda= rd +bti-1 bti-3: CFLAGS +=3D -fno-stack-protector $(CROSS_CC_HAS_ARMV8_BTI) bti-1 bti-3: LDFLAGS +=3D -nostdlib endif # bti-2 tests PROT_BTI, so no special compiler support required. @@ -64,12 +64,13 @@ AARCH64_TESTS +=3D bti-2 # MTE Tests ifneq ($(CROSS_CC_HAS_ARMV8_MTE),) AARCH64_TESTS +=3D mte-1 mte-2 mte-3 mte-4 mte-5 mte-6 mte-7 -mte-%: CFLAGS +=3D -march=3Darmv8.5-a+memtag +mte-%: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_MTE) endif =20 # SME Tests ifneq ($(CROSS_AS_HAS_ARMV9_SME),) AARCH64_TESTS +=3D sme-outprod1 sme-smopa-1 sme-smopa-2 +sme-outprod1 sme-smopa-1 sme-smopa-2: CFLAGS +=3D $(CROSS_AS_HAS_ARMV9_SME) endif =20 # System Registers Tests @@ -99,7 +100,7 @@ TESTS +=3D sha512-vector ifneq ($(CROSS_CC_HAS_SVE),) # SVE ioctl test AARCH64_TESTS +=3D sve-ioctls -sve-ioctls: CFLAGS+=3D-march=3Darmv8.1-a+sve +sve-ioctls: CFLAGS +=3D $(CROSS_CC_HAS_SVE) =20 sha512-sve: CFLAGS=3D-O3 -march=3Darmv8.1-a+sve sha512-sve: sha512.c @@ -134,7 +135,7 @@ endif =20 ifneq ($(CROSS_CC_HAS_SVE2),) AARCH64_TESTS +=3D test-826 -test-826: CFLAGS+=3D-march=3Darmv8.1-a+sve2 +test-826: CFLAGS +=3D $(CROSS_CC_HAS_SVE2) endif =20 TESTS +=3D $(AARCH64_TESTS) --=20 2.39.2