From: Sunil K Pandey Date: Mon, 7 Mar 2022 18:47:08 +0000 (-0800) Subject: x86_64: Fix svml_d_acos8_core_avx512.S code formatting X-Git-Tag: glibc-2.36~630 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67031a3934c7b27a7ab9bfe05681472892680b37;p=thirdparty%2Fglibc.git x86_64: Fix svml_d_acos8_core_avx512.S code formatting 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. 8. 1 space between line content and line comment. 9. Space after all commas. Reviewed-by: Noah Goldstein --- diff --git a/sysdeps/x86_64/fpu/multiarch/svml_d_acos8_core_avx512.S b/sysdeps/x86_64/fpu/multiarch/svml_d_acos8_core_avx512.S index 4f617ac8507..f4c72c36182 100644 --- a/sysdeps/x86_64/fpu/multiarch/svml_d_acos8_core_avx512.S +++ b/sysdeps/x86_64/fpu/multiarch/svml_d_acos8_core_avx512.S @@ -28,280 +28,279 @@ /* Offsets for data table __svml_dacos_data_internal */ -#define SgnBit 0 -#define OneHalf 64 -#define SmallNorm 128 -#define MOne 192 -#define Two 256 -#define sqrt_coeff_1 320 -#define sqrt_coeff_2 384 -#define sqrt_coeff_3 448 -#define sqrt_coeff_4 512 -#define poly_coeff_1 576 -#define poly_coeff_2 640 -#define poly_coeff_3 704 -#define poly_coeff_4 768 -#define poly_coeff_5 832 -#define poly_coeff_6 896 -#define poly_coeff_7 960 -#define poly_coeff_8 1024 -#define poly_coeff_9 1088 -#define poly_coeff_10 1152 -#define poly_coeff_11 1216 -#define poly_coeff_12 1280 -#define PiH 1344 -#define Pi2H 1408 +#define SgnBit 0 +#define OneHalf 64 +#define SmallNorm 128 +#define MOne 192 +#define Two 256 +#define sqrt_coeff_1 320 +#define sqrt_coeff_2 384 +#define sqrt_coeff_3 448 +#define sqrt_coeff_4 512 +#define poly_coeff_1 576 +#define poly_coeff_2 640 +#define poly_coeff_3 704 +#define poly_coeff_4 768 +#define poly_coeff_5 832 +#define poly_coeff_6 896 +#define poly_coeff_7 960 +#define poly_coeff_8 1024 +#define poly_coeff_9 1088 +#define poly_coeff_10 1152 +#define poly_coeff_11 1216 +#define poly_coeff_12 1280 +#define PiH 1344 +#define Pi2H 1408 #include - .text - .section .text.evex512,"ax",@progbits + .section .text.evex512, "ax", @progbits ENTRY(_ZGVeN8v_acos_skx) - pushq %rbp - cfi_def_cfa_offset(16) - movq %rsp, %rbp - cfi_def_cfa(6, 16) - cfi_offset(6, -16) - andq $-64, %rsp - subq $192, %rsp - vmovups __svml_dacos_data_internal(%rip), %zmm7 - vmovups OneHalf+__svml_dacos_data_internal(%rip), %zmm8 - -/* S ~ 2*sqrt(Y) */ - vmovups SmallNorm+__svml_dacos_data_internal(%rip), %zmm11 - vmovups Two+__svml_dacos_data_internal(%rip), %zmm14 - vmovups sqrt_coeff_1+__svml_dacos_data_internal(%rip), %zmm15 - vmovups sqrt_coeff_2+__svml_dacos_data_internal(%rip), %zmm2 - vmovups sqrt_coeff_3+__svml_dacos_data_internal(%rip), %zmm1 - vmovups MOne+__svml_dacos_data_internal(%rip), %zmm10 - vmovaps %zmm0, %zmm6 - -/* x = -|arg| */ - vorpd %zmm6, %zmm7, %zmm5 - vandpd %zmm6, %zmm7, %zmm4 - -/* Y = 0.5 + 0.5*(-x) */ - vfmadd231pd {rn-sae}, %zmm5, %zmm8, %zmm8 - -/* x^2 */ - vmulpd {rn-sae}, %zmm5, %zmm5, %zmm9 - vrsqrt14pd %zmm8, %zmm12 - vcmppd $17, {sae}, %zmm11, %zmm8, %k1 - vcmppd $17, {sae}, %zmm10, %zmm5, %k0 - vmovups poly_coeff_5+__svml_dacos_data_internal(%rip), %zmm10 - vmovups poly_coeff_7+__svml_dacos_data_internal(%rip), %zmm11 - vminpd {sae}, %zmm8, %zmm9, %zmm3 - vmovups poly_coeff_3+__svml_dacos_data_internal(%rip), %zmm9 - vxorpd %zmm12, %zmm12, %zmm12{%k1} - vaddpd {rn-sae}, %zmm8, %zmm8, %zmm0 - vcmppd $21, {sae}, %zmm8, %zmm3, %k4 - -/* X