From patchwork Tue Apr 10 19:39:08 2018 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: 133104 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1638598ljb; Tue, 10 Apr 2018 12:49:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qj6oEYCZy6gtA38HKhGXNY5aKAR+grPZRAcr/eTNbidjboHWGugsB+n8XAfj9wvEn449W X-Received: by 10.55.110.5 with SMTP id j5mr2733709qkc.192.1523389751511; Tue, 10 Apr 2018 12:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523389751; cv=none; d=google.com; s=arc-20160816; b=bJ7YoJR5tiykG7dFh2KCgmjedXm7XLOJQyRkpgqXkXjgQGvT2u6KW20ALzK+j9dDZJ KrjzJuJJ1Mw6yjJhEtE4IdtmE0j7r5ySRnMs4L1M49sz3/ihXuwtwRUqg0oJyJ2gOFos V+Yc44pbUKdju3mrgHXfA50xBBgiqm7ZXe2uZmMEmaHvKco+nQSsPgPK8yWb0RPI1A+M cWALCWWMtur7ZflJ4UZfZ/OTHet1D1bSG8uRoqdOdW8pLS1Xo+1Do7TiDsMRwUpr2mFw g2/zTo75g7Ty3VbpzhtVead+Jaypn8ugl+eCR8WAt/S83ZgibqraDvFOM93lLHJS6OhU p0qg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Fvsf6AQMCBf/oxavipK7R9Eh5M1egm834bT9+DNxsSk=; b=Lv+BKVqkNFA6XSGEcmdAZZvbwU/CAlU9HI+DXuZaTKB4idTUkCdlBM7XZOnpkjaDR9 SY8m/WcjFpVKZdkf9HJuXHLQaMdXkRKWRpUWBYYUEQMsPp++L1P44NO2o5V7MHJnfRd3 mo3y9etwkfm2zNVz1IT4Kc4jyAUqzHXGcDE1XExEdNEL2DL3KUncKCQwRfKLAp7BIOwd WMHkZlKIiPeRh8noGZJK2DfSouda295PqKKSFSZh3Qsrg64OxP40TWyBsUJYbiwHx6vK eujD+0i9VYAHvfTj0KbmFFOinsmw9Sj3VFqc0wSFrEVu6Gt3rm/SLy81snMlXiEdK3d8 YUHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=J7MO9Xzg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p188si1279422qkf.140.2018.04.10.12.49.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 10 Apr 2018 12:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=J7MO9Xzg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:39824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5zGR-0007Om-1i for patch@linaro.org; Tue, 10 Apr 2018 15:49:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z79-0000Hh-4P for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5z77-0006OB-CB for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:35 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:56051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5z77-0006NN-2X for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:33 -0400 Received: by mail-wm0-x242.google.com with SMTP id b127so28589796wmf.5 for ; Tue, 10 Apr 2018 12:39:32 -0700 (PDT) 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=Fvsf6AQMCBf/oxavipK7R9Eh5M1egm834bT9+DNxsSk=; b=J7MO9Xzg+caV2OnnIuyI3y6LuXbTdwmAfAi8Ppt8DTXUpuVPUAyybbQzx64PR1gqAA QfGwapean0ZNY5Aw5rfNHSFAsL1HQWz+B9RABuAXRHaWkWwX58bE6GSe9UICUE4qKD1q JwDJBVDfIf76NhJegLOf/MWAHSD/y6xxPkkNk= 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=Fvsf6AQMCBf/oxavipK7R9Eh5M1egm834bT9+DNxsSk=; b=PfuZeu4mvFBMY9kd6JRHgL82pDei3tN79qp7EUdl7QjuJceDyFHZbCwO6pI1vVnD/q BgHCn8xYE2RZWBZj0kCMPj1Wfh6uFgyhH+HzrNsGZ/EVhWMV+eTQMhMfQWARCxvmJX2o 0MUQNqV9927fpQxqWW3HFxoX2VAp284LkGutj26V5zu1EsuHhUdHILrszW9EGJAI+MGO un4vNGDQZClLt6RYrndgkU4KD8wID/s0//lzzlMXzOur3REQn+aR8tnrytY/UdV437xW w5VsiJyzXwI0GMbes+dro3NCEvh8ZcmRw9cTo4vURReTEUvbbHTOsX6OqKaX3a+wHvLJ /T0g== X-Gm-Message-State: ALQs6tCsYMJlMbtUrPj/552Be56HawBT227eNcIt2wQ5IGPlvebGOvD1 yk41X4M+mVarP6vjyReghYXwcA== X-Received: by 10.28.40.4 with SMTP id o4mr585571wmo.44.1523389171955; Tue, 10 Apr 2018 12:39:31 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id r28sm3419322wra.78.2018.04.10.12.39.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 12:39:28 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5C1C13E0B7C; Tue, 10 Apr 2018 20:39:20 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 20:39:08 +0100 Message-Id: <20180410193919.28026-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410193919.28026-1-alex.bennee@linaro.org> References: <20180410193919.28026-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:400c:c09::242 Subject: [Qemu-devel] [PATCH v1 13/24] tests/tcg/i386: move test-i386-sse.c to tests/tcg/x86_64/test-sse.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , famz@redhat.com, cota@braap.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The test mixes up 32bit and 64 bit code. It should probably be split into two distinct test cases. However for now just move it out of the way of the i386 build. Signed-off-by: Alex Bennée --- tests/tcg/{i386/test-i386-ssse3.c => x86_64/test-sse.c} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename tests/tcg/{i386/test-i386-ssse3.c => x86_64/test-sse.c} (93%) -- 2.16.2 diff --git a/tests/tcg/i386/test-i386-ssse3.c b/tests/tcg/x86_64/test-sse.c similarity index 93% rename from tests/tcg/i386/test-i386-ssse3.c rename to tests/tcg/x86_64/test-sse.c index 0a42bd03e2..196ec7f32f 100644 --- a/tests/tcg/i386/test-i386-ssse3.c +++ b/tests/tcg/x86_64/test-sse.c @@ -1,4 +1,4 @@ -/* See if various MMX/SSE SSSE3 instructions give expected results */ +/* See if various MMX/SSE SSSE3/4 instructions give expected results */ #include #include #include @@ -41,8 +41,7 @@ int main(int argc, char *argv[]) { asm volatile ("movdqa %%xmm0, (%0)" : : "r" (hello)); printf("%5.5s\n", hello); -#if 1 /* SSE4 */ - /* popcnt r64, r/m64 */ + /* SSE4 popcnt r64, r/m64 */ asm volatile ("movq $0x8421000010009c63, %%rax" : : : "rax"); asm volatile ("popcnt %%ax, %%dx" : : : "dx"); asm volatile ("popcnt %%eax, %%ecx" : : : "ecx"); @@ -51,7 +50,6 @@ int main(int argc, char *argv[]) { asm volatile ("movl %%ecx, %0" : "=m" (c)); asm volatile ("movw %%dx, %0" : "=m" (d)); printf("%i = %i\n%i = %i = %i\n", 13, (int) a, 9, c, d + 1); -#endif return 0; }