From patchwork Fri Mar 20 07:08:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 11448483 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 E66C9139A for ; Fri, 20 Mar 2020 07:09:51 +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 C2E6920767 for ; Fri, 20 Mar 2020 07:09:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2E6920767 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 1jFBlP-0002xj-8B; Fri, 20 Mar 2020 07:08:15 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jFBlN-0002xe-Vh for xen-devel@lists.xenproject.org; Fri, 20 Mar 2020 07:08:14 +0000 X-Inumbo-ID: 8fdadab8-6a79-11ea-bec1-bc764e2007e4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 8fdadab8-6a79-11ea-bec1-bc764e2007e4; Fri, 20 Mar 2020 07:08:13 +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 D8F48ACF2; Fri, 20 Mar 2020 07:08:11 +0000 (UTC) To: "xen-devel@lists.xenproject.org" From: Jan Beulich Message-ID: <4a699b57-a233-c9a3-2b2d-3f42941c13bf@suse.com> Date: Fri, 20 Mar 2020 08:08:07 +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] 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 issue 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 --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -97,7 +97,7 @@ 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) @@ -112,7 +112,7 @@ $(foreach flavor,$(SIMD) $(FMA),$(eval $ # only after AVX512F and some of its extensions. TARGET-$(shell echo 'asm("{evex} vzeroall");' | $(CC) -x c -c -o /dev/null - || echo y) := -ifeq ($(TARGET-y),) +ifeq ($(TARGET-y)$(filter run%,$(MAKECMDGOALS)),) $(warning Test harness not built, use newer compiler than "$(CC)" (version $(shell $(CC) -dumpversion)) and an "{evex}" capable assembler) endif