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: 896928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="J7MO9Xzg"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40LHjh5JTJz9s29 for ; Wed, 11 Apr 2018 05:46:32 +1000 (AEST) Received: from localhost ([::1]:39728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5zDq-0005uW-QC for incoming@patchwork.ozlabs.org; Tue, 10 Apr 2018 15:46:30 -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-Google-Smtp-Source: AIpwx49jQTr2keTvrJxYVyCZ2FqnNTpcZQO8W6V5F0+EEfqQkNjVfrj1YBFWFiooRg2/Yp2xt8z2Hg== 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+incoming=patchwork.ozlabs.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%) 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; }