From patchwork Mon Mar 7 14:59:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Pandey X-Patchwork-Id: 1602281 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=oECO4L51; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KC2ZF0cRMz9sFk for ; Tue, 8 Mar 2022 02:34:29 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BA68D3858428 for ; Mon, 7 Mar 2022 15:34:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA68D3858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1646667266; bh=3uDForfI0i9A9goXUUX0YyDRrvlT1vJpCJPkeldNav0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=oECO4L51GFdF+IzSsuOxBl8lfAumuRzG9s9/zu6AetkVITaxSdtRz5UNRCHaKpXJ8 aWMaN3rmdq63bF6Y9gmRwcGhjGMcBVMuVLzy4zS2YGOF2qqDlpdvg6D9SFsnRWWBot kVJ2rXSOIth1MhrgsMTz9iU7DflJuuZ7PwWxr13o= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by sourceware.org (Postfix) with ESMTPS id 42B613858426 for ; Mon, 7 Mar 2022 15:02:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 42B613858426 X-IronPort-AV: E=McAfee;i="6200,9189,10278"; a="234364102" X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="234364102" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 07:02:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="813081753" Received: from scymds01.sc.intel.com ([10.148.94.138]) by fmsmga005.fm.intel.com with ESMTP; 07 Mar 2022 07:02:02 -0800 Received: from gskx-1.sc.intel.com (gskx-1.sc.intel.com [172.25.149.211]) by scymds01.sc.intel.com with ESMTP id 227F21dc016772; Mon, 7 Mar 2022 07:02:02 -0800 To: libc-alpha@sourceware.org Subject: [PATCH 004/126] x86_64: Fix svml_d_acos2_core_sse4.S code formatting Date: Mon, 7 Mar 2022 06:59:59 -0800 Message-Id: <20220307150201.10590-5-skpgkp2@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307150201.10590-1-skpgkp2@gmail.com> References: <20220307150201.10590-1-skpgkp2@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, KAM_DMARC_NONE, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sunil K Pandey via Libc-alpha From: Sunil Pandey Reply-To: Sunil K Pandey Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" This commit contains following formatting changes 1. Instructions proceeded by a tab. 2. Instruction less than 8 characters in length have a tab between it and the first operand. 3. Instruction greater than 7 characters in length have a space between it and the first operand. 4. Tabs after `#define`d names and their value. 5. 8 space at the beginning of line replaced by tab. 6. Indent comments with code. 7. Remove redundent .text section. --- .../fpu/multiarch/svml_d_acos2_core_sse4.S | 489 +++++++++--------- 1 file changed, 244 insertions(+), 245 deletions(-) diff --git a/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S b/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S index c25ff14329..c95aa26e3e 100644 --- a/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S +++ b/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S @@ -28,276 +28,275 @@ /* Offsets for data table __svml_dacos_data_internal */ -#define SgnBit 0 -#define OneHalf 16 -#define SmallNorm 32 -#define MOne 48 -#define Two 64 -#define sqrt_coeff 80 -#define poly_coeff 144 -#define PiH 336 -#define Pi2H 352 +#define SgnBit 0 +#define OneHalf 16 +#define SmallNorm 32 +#define MOne 48 +#define Two 64 +#define sqrt_coeff 80 +#define poly_coeff 144 +#define PiH 336 +#define Pi2H 352 #include - .text - .section .text.sse4,"ax",@progbits + .section .text.sse4, "ax", @progbits ENTRY(_ZGVbN2v_acos_sse4) - subq $72, %rsp - cfi_def_cfa_offset(80) - movaps %xmm0, %xmm5 - movups __svml_dacos_data_internal(%rip), %xmm3 - movups OneHalf+__svml_dacos_data_internal(%rip), %xmm6 - -/* x = -|arg| */ - movaps %xmm3, %xmm4 - orps %xmm5, %xmm4 - -/* Y = 0.5 + 0.5*(-x) */ - movaps %xmm6, %xmm7 - mulpd %xmm4, %xmm7 - addpd %xmm7, %xmm6 - -/* S ~ 2*sqrt(Y) */ - cvtpd2ps %xmm6, %xmm9 - movlhps %xmm9, %xmm9 - -/* x^2 */ - movaps %xmm4, %xmm0 - rsqrtps %xmm9, %xmm10 - mulpd %xmm4, %xmm0 - cvtps2pd %xmm10, %xmm11 - minpd %xmm6, %xmm0 - movaps %xmm6, %xmm1 - movaps %xmm0, %xmm2 - cmpltpd SmallNorm+__svml_dacos_data_internal(%rip), %xmm1 - cmpnltpd %xmm6, %xmm2 - addpd %xmm6, %xmm6 - andnps %xmm11, %xmm1 - movaps %xmm0, %xmm11 - movaps %xmm1, %xmm12 - andps %xmm5, %xmm3 - mulpd %xmm1, %xmm12 - mulpd %xmm6, %xmm1 - mulpd %xmm12, %xmm6 - mulpd %xmm0, %xmm11 - subpd Two+__svml_dacos_data_internal(%rip), %xmm6 - movups sqrt_coeff+__svml_dacos_data_internal(%rip), %xmm13 - movaps %xmm6, %xmm14 - mulpd %xmm6, %xmm13 - mulpd %xmm1, %xmm14 - addpd sqrt_coeff+16+__svml_dacos_data_internal(%rip), %xmm13 - mulpd %xmm6, %xmm13 - addpd sqrt_coeff+32+__svml_dacos_data_internal(%rip), %xmm13 - mulpd %xmm13, %xmm6 - -/* polynomial */ - movups poly_coeff+__svml_dacos_data_internal(%rip), %xmm15 - movaps %xmm11, %xmm7 - mulpd %xmm0, %xmm15 - addpd sqrt_coeff+48+__svml_dacos_data_internal(%rip), %xmm6 - addpd poly_coeff+16+__svml_dacos_data_internal(%rip), %xmm15 - mulpd %xmm11, %xmm7 - mulpd %xmm6, %xmm14 - mulpd %xmm11, %xmm15 - subpd %xmm14, %xmm1 - movups MOne+__svml_dacos_data_internal(%rip), %xmm8 - andps %xmm2, %xmm1 - -/* NaN processed in special branch (so wind test passed) */ - cmpnlepd %xmm4, %xmm8 - movmskpd %xmm8, %edx - -/* X