From patchwork Sun Nov 11 10:14:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 996093 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-489643-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="OWgD4bBP"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="MdNt9Rc6"; 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 42t8rf6xCGz9s8J for ; Sun, 11 Nov 2018 21:14:40 +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:content-type:mime-version; q=dns; s=default; b=GvSOoVe5jGNq/yXYa7+FEY/GGN43oEVUU85yVgItqtrMj2PgsS drqN+U0kZzkR/wVKF4q3oXQWc2YunBVY6iRpHFr22FXikz1mJ9u8rFS4ivLI1xZ+ V75gYKAJ7bVxiATxQ8ZwsWfbaf1E7AbSbH9Gd/uvvVRFStx1Ox+OnVa30= 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:content-type:mime-version; s= default; bh=BP+Y80DPcdgVxfndv7T5MWQ/ibw=; b=OWgD4bBPE1EAT/Ax9ukw 7DFVjYFf1jAQ3q2kBVRYcwh0VURGbpMZEaM1b19uikIwVMKnFlgGpzhf5KynS+NI dpeQwYIU+IVeGzpoTK7cdOd1490Lyp2CfWjnIacyEVLVyl5ha1+bg7r4B6xFcTtR ytNWiNLsDq+SuJujucwy8iA= Received: (qmail 45150 invoked by alias); 11 Nov 2018 10:14:33 -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 45139 invoked by uid 89); 11 Nov 2018 10:14:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:15.20.1294.20, H*r:15.20.1294.20, H*RU:15.20.1294.20, 1bit X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr10081.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 11 Nov 2018 10:14:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RCjTcKnNMOOX+ido2D3CKmZ/VHmzo9LYqWSRdwda7Dc=; b=MdNt9Rc6YEVmrSjyIFhA/6ZBk7XDBcNbfnxEwOSxN2UvBasYTaQD3NEOvS3kDfcbaa1zZ2XT4cNacwSqEe4y19JlT0arDIi9c8mTh+lfdAiC6uSSJLYwyCoMTzs1u9nBzs2ASoO2sI3Dy9zUrQPIicz+pjhhJUswyazevDAqu4k= Received: from DB6PR0802MB2309.eurprd08.prod.outlook.com (10.172.228.13) by DB6PR0802MB2519.eurprd08.prod.outlook.com (10.172.251.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Sun, 11 Nov 2018 10:14:26 +0000 Received: from DB6PR0802MB2309.eurprd08.prod.outlook.com ([fe80::b0a0:9296:61e0:a481]) by DB6PR0802MB2309.eurprd08.prod.outlook.com ([fe80::b0a0:9296:61e0:a481%10]) with mapi id 15.20.1294.044; Sun, 11 Nov 2018 10:14:26 +0000 From: Tamar Christina To: "gcc-patches@gcc.gnu.org" CC: nd , James Greenhalgh , Richard Earnshaw , Marcus Shawcroft , "joseph@codesourcery.com" , "sandra@codesourcery.com" Subject: [GCC][AArch64] [middle-end][docs] Document the xorsign optab Date: Sun, 11 Nov 2018 10:14:25 +0000 Message-ID: <20181111101421.GA3784@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tamar.Christina@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) MIME-Version: 1.0 X-IsSubscribed: yes Hi All, This patch just adds documentation for the xorsign optab that was added a while ago. Ok for trunk? Thanks, Tamar gcc/ChangeLog: 2018-11-11 Tamar Christina * doc/md.texi (xorsign): Document it. diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 360b36b862f7eb13964e60ff53b04e1274f89fe4..510321ef12a167f79875cd13a8683271ee590ebe 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -5997,6 +5997,15 @@ vector floating-point mode. This pattern is not allowed to @code{FAIL}. +@cindex @code{xorsign@var{m}3} instruction pattern +@item @samp{xorsign@var{m}3} +Target suppports an efficient expansion of x * copysign (1.0, y) +as xorsign (x, y). Store a value with the magnitude of operand 1 +and the sign of operand 2 into operand 0. All operands have mode +@var{m}, which is a scalar or vector floating-point mode. + +This pattern is not allowed to @code{FAIL}. + @cindex @code{ffs@var{m}2} instruction pattern @item @samp{ffs@var{m}2} Store into operand 0 one plus the index of the least significant 1-bit