From patchwork Fri Mar 20 16:11:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 11449751 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D355913 for ; Fri, 20 Mar 2020 16:13:15 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1370320739 for ; Fri, 20 Mar 2020 16:13:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1370320739 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jFKFE-0002UC-Mc; Fri, 20 Mar 2020 16:11:36 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jFKFD-0002U2-EV for xen-devel@lists.xenproject.org; Fri, 20 Mar 2020 16:11:35 +0000 X-Inumbo-ID: 77620366-6ac5-11ea-bdbb-12813bfff9fa Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 77620366-6ac5-11ea-bdbb-12813bfff9fa; Fri, 20 Mar 2020 16:11:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B61A9AE3A; Fri, 20 Mar 2020 16:11:32 +0000 (UTC) From: Jan Beulich To: "xen-devel@lists.xenproject.org" Message-ID: <4c5af3e1-836f-4104-99a8-79755c8034e1@suse.com> Date: Fri, 20 Mar 2020 17:11:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Language: en-US Subject: [Xen-devel] [PATCH v2] x86emul: suppress "not built" warning for test harness for run targets X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The run* targets can be used to test whatever the tool chain is capable of building, as long as at least the main harness source file builds. Don't probe the tools chain, in particular to avoid issuing the warning, in this case. While looking into this I also noticed the wording of the respective comment isn't quite right, which therefore gets altered at the same time. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- v2: Also suppress the compiler/assembler probing in this case. --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -97,11 +97,13 @@ avx512dq-opmask-vecs := 1 2 avx512bw-opmask-vecs := 4 8 # Suppress building by default of the harness if the compiler can't deal -# with any of the extensions used. Don't alter the "run" target dependencies +# with some of the extensions used. Don't alter the "run" target dependencies # though, as this target needs to be specified manually, and things may work # partially even with older compilers. TARGET-y := $(TARGET) +ifeq ($(filter run%,$(MAKECMDGOALS)),) + define simd-check-cc TARGET-$(shell echo 'int i;' | $(CC) -x c -c -o /dev/null -m$(1) - || echo y) := endef @@ -116,6 +118,8 @@ ifeq ($(TARGET-y),) $(warning Test harness not built, use newer compiler than "$(CC)" (version $(shell $(CC) -dumpversion)) and an "{evex}" capable assembler) endif +endif + all: $(TARGET-y) # For AVX and later, have the compiler avoid XMM0 to widen coverage of