Message ID | 20190216003408.23761-11-hjl.tools@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-496323-incoming=patchwork.ozlabs.org@gcc.gnu.org> 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-496323-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (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="g5iIApSh"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iUHAGkEu"; 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 441WRZ5fbLz9sML for <incoming@patchwork.ozlabs.org>; Sat, 16 Feb 2019 11:37:14 +1100 (AEDT) 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:in-reply-to:references :mime-version:content-transfer-encoding; q=dns; s=default; b=lIi qxG8+b06gWkuCmVl7ZPdk5lQuyrUjvrjAfd5ulDWqqcUC5tIZR/+ySe7graVm9y2 hMQNHDDXXD0ChXp3fDmdWGC5Sgvjzv/FtuvFcnyAbOaGmS5r44zNeNfS/NI+z2t7 IgDr99w1fvEYA/7Vp0+BYEQNqtzaxHMfYqC41Z0Q= 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:in-reply-to:references :mime-version:content-transfer-encoding; s=default; bh=aA8mKRhoj UuHXvGvS3ELcrqN8EQ=; b=g5iIApShUQZpe5PJe2gZyFurCI8kpFgzD2TtA3BkB WkTTkWCFUoSgl5LI94jV/0TjZoq+gcadc1ekazbtl5GvWji6AHqPrpyfWD8/EWOk yrm0/zOAO4YHBl3VtV5e+MuTV50Jd+a5rFR3kwet9vblRQMJOph1RhuGaGTQFkDb OE= Received: (qmail 100681 invoked by alias); 16 Feb 2019 00:34:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 100050 invoked by uid 89); 16 Feb 2019 00:34:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-pl1-f181.google.com Received: from mail-pl1-f181.google.com (HELO mail-pl1-f181.google.com) (209.85.214.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Feb 2019 00:34:22 +0000 Received: by mail-pl1-f181.google.com with SMTP id r14so5743384pls.12 for <gcc-patches@gcc.gnu.org>; Fri, 15 Feb 2019 16:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nibe/oxc7vnOxF/2EvaraOOwANMxhhVGUXaxB46pDjQ=; b=iUHAGkEuvu9uRoF0pgKjYXrZk/QZ6jMQbP9zaD7P+gS8xNY2IS63rJfA9+YSgl5O9y 6kjRtlcKCJpOuL3rDM17cDAW7S6Aa0t1vb58CVH6wcRW75NHsVtGMz8RezlZhTd1BMk4 w7NAAGnchYY3Fj/d+Hfq7zwJo0yuHAH6McB1PN2A4Ae/y/z9LFL+lkYYK/Wd8ezjoDsc nAl9a4+HVALkhE4r9gKqtLfzE5rg+drlDhskcGp7brlbJD0V6XkaBCxVjiYPmxmg1ZAF xEd7FHTd9lM0X409/GU2FMTkEvPfNdp+v4CUx9OeHk7gQLJSkudA35WX9JEq8lcdlC2k l5UA== Received: from gnu-cfl-2.localdomain (c-73-93-86-59.hsd1.ca.comcast.net. [73.93.86.59]) by smtp.gmail.com with ESMTPSA id x8sm316156pfe.1.2019.02.15.16.34.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Feb 2019 16:34:14 -0800 (PST) Received: from gnu-cfl-2.hsd1.ca.comcast.net (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id DFF51C0334; Fri, 15 Feb 2019 16:34:08 -0800 (PST) From: "H.J. Lu" <hjl.tools@gmail.com> To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak <ubizjak@gmail.com> Subject: [PATCH 10/42] i386: Emulate MMX mmx_andnot<mode>3 with SSE Date: Fri, 15 Feb 2019 16:33:36 -0800 Message-Id: <20190216003408.23761-11-hjl.tools@gmail.com> In-Reply-To: <20190216003408.23761-1-hjl.tools@gmail.com> References: <20190216003408.23761-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes |
Series |
V7: Emulate MMX intrinsics with SSE
|
expand
|
diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md index 7e2d40313c3..510d453f0fd 100644 --- a/gcc/config/i386/mmx.md +++ b/gcc/config/i386/mmx.md @@ -1049,14 +1049,18 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (define_insn "mmx_andnot<mode>3" - [(set (match_operand:MMXMODEI 0 "register_operand" "=y") + [(set (match_operand:MMXMODEI 0 "register_operand" "=y,x,Yv") (and:MMXMODEI - (not:MMXMODEI (match_operand:MMXMODEI 1 "register_operand" "0")) - (match_operand:MMXMODEI 2 "nonimmediate_operand" "ym")))] - "TARGET_MMX" - "pandn\t{%2, %0|%0, %2}" - [(set_attr "type" "mmxadd") - (set_attr "mode" "DI")]) + (not:MMXMODEI (match_operand:MMXMODEI 1 "register_operand" "0,0,Yv")) + (match_operand:MMXMODEI 2 "register_mmxmem_operand" "ym,x,Yv")))] + "TARGET_MMX || TARGET_MMX_WITH_SSE" + "@ + pandn\t{%2, %0|%0, %2} + pandn\t{%2, %0|%0, %2} + vpandn\t{%2, %1, %0|%0, %1, %2}" + [(set_attr "mmx_isa" "native,x64_noavx,x64_avx") + (set_attr "type" "mmxadd,sselog,sselog") + (set_attr "mode" "DI,TI,TI")]) (define_expand "mmx_<code><mode>3" [(set (match_operand:MMXMODEI 0 "register_operand")