From patchwork Mon May 20 21:36:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1102360 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=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-501265-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="p1BKmDsX"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 457Bzq6rPrz9s7h for ; Tue, 21 May 2019 07:36:38 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=EH7G83um0nCptDVv I5+G9u4cdwuhyX7CN94+YHTOn8LWJMpgWSicp2pBdLC6/lOF8+LlL5etSwQtI4zR ThblYVRsMWB2Gb3DdEDessqDWPIIyQDQ8iYKtbQoCTOXZu3P1TBsHVUBFZnSlRis vWKQwpjiNf/6WUyT6wCU5J5oRJE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=4SqrTeG8ACOY3kGoqSz6Q3 0CVRs=; b=p1BKmDsXEkyTZy0GvNsrm4nin4b8M3ExVAE8CoB/0KzBgz5V+lsZfi onQaq3vxFdB4pHzcAcpv2+3icrC1MD0deTxn7jfpKh462IGC7uFr5gGOBfpnX4td g/8+z9jvLy/JJybQ1S7C+04lyy2sDNN4HTfUMKiCCY1VHLum6Z8Vw= Received: (qmail 3207 invoked by alias); 20 May 2019 21:36:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 3198 invoked by uid 89); 20 May 2019 21:36:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=mmx, emulation, MMX, HContent-Transfer-Encoding:8bit X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 May 2019 21:36:30 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 14:36:28 -0700 Received: from gnu-cfl-1.sc.intel.com ([172.25.70.237]) by fmsmga002.fm.intel.com with ESMTP; 20 May 2019 14:36:28 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak , Jeff Law Subject: [PATCH] i386: Adjust gcc.target/i386/pr22076.c for 64-bit Date: Mon, 20 May 2019 14:36:26 -0700 Message-Id: <20190520213626.27024-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-IsSubscribed: yes With SSE emulation of MMX intrinsics in 64-bit mode, --- __v8qi test () { __v8qi mm0 = {1,2,3,4,5,6,7,8}; __v8qi mm1 = {11,22,33,44,55,66,77,88}; volatile __m64 x; x = _mm_add_pi8 (mm0, mm1); return x; } --- is compiled into movq .LC0(%rip), %xmm0 movq .LC1(%rip), %xmm1 paddb %xmm1, %xmm0 movq %xmm0, -8(%rsp) movq -8(%rsp), %xmm0 ret instead of movq .LC1(%rip), %mm0 paddb .LC0(%rip), %mm0 movq %mm0, -8(%rsp) movq -8(%rsp), %xmm0 ret Adjust gcc.target/i386/pr22076.c for 64-bit. * gcc.target/i386/pr22076.c: Adjusted for 64-bit. --- gcc/testsuite/gcc.target/i386/pr22076.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr22076.c b/gcc/testsuite/gcc.target/i386/pr22076.c index 6c1620b4a3b..38c29dcc35b 100644 --- a/gcc/testsuite/gcc.target/i386/pr22076.c +++ b/gcc/testsuite/gcc.target/i386/pr22076.c @@ -15,5 +15,6 @@ __v8qi test () return x; } -/* { dg-final { scan-assembler-times "movq" 3 } } */ +/* { dg-final { scan-assembler-times "movq" 3 { target ia32 } } } */ +/* { dg-final { scan-assembler-times "movq" 4 { target { ! ia32 } } } } */ /* { dg-final { scan-assembler-not "movl" { target nonpic } } } */