|
Packit |
6c4009 |
/* Function powf vectorized with AVX2.
|
|
Packit |
6c4009 |
Copyright (C) 2014-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <sysdep.h>
|
|
Packit |
6c4009 |
#include "svml_s_powf_data.h"
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.text
|
|
Packit |
6c4009 |
ENTRY(_ZGVdN8vv_powf_avx2)
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
ALGORITHM DESCRIPTION:
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
We are using the next identity : pow(x,y) = 2^(y * log2(x)).
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
1) log2(x) calculation
|
|
Packit |
6c4009 |
Here we use the following formula.
|
|
Packit |
6c4009 |
Let |x|=2^k1*X1, where k1 is integer, 1<=X1<2.
|
|
Packit |
6c4009 |
Let C ~= 1/ln(2),
|
|
Packit |
6c4009 |
Rcp1 ~= 1/X1, X2=Rcp1*X1,
|
|
Packit |
6c4009 |
Rcp2 ~= 1/X2, X3=Rcp2*X2,
|
|
Packit |
6c4009 |
Rcp3 ~= 1/X3, Rcp3C ~= C/X3.
|
|
Packit |
6c4009 |
Then
|
|
Packit |
6c4009 |
log2|x| = k1 + log2(1/Rcp1) + log2(1/Rcp2) + log2(C/Rcp3C) +
|
|
Packit |
6c4009 |
log2(X1*Rcp1*Rcp2*Rcp3C/C),
|
|
Packit |
6c4009 |
where X1*Rcp1*Rcp2*Rcp3C = C*(1+q), q is very small.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The values of Rcp1, log2(1/Rcp1), Rcp2, log2(1/Rcp2),
|
|
Packit |
6c4009 |
Rcp3C, log2(C/Rcp3C) are taken from tables.
|
|
Packit |
6c4009 |
Values of Rcp1, Rcp2, Rcp3C are such that RcpC=Rcp1*Rcp2*Rcp3C
|
|
Packit |
6c4009 |
is exactly represented in target precision.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
log2(X1*Rcp1*Rcp2*Rcp3C/C) = log2(1+q) = ln(1+q)/ln2 =
|
|
Packit |
6c4009 |
= 1/(ln2)*q - 1/(2ln2)*q^2 + 1/(3ln2)*q^3 - ... =
|
|
Packit |
6c4009 |
= 1/(C*ln2)*cq - 1/(2*C^2*ln2)*cq^2 + 1/(3*C^3*ln2)*cq^3 - ... =
|
|
Packit |
6c4009 |
= (1 + a1)*cq + a2*cq^2 + a3*cq^3 + ...,
|
|
Packit |
6c4009 |
where
|
|
Packit |
6c4009 |
cq=X1*Rcp1*Rcp2*Rcp3C-C,
|
|
Packit |
6c4009 |
a1=1/(C*ln(2))-1 is small,
|
|
Packit |
6c4009 |
a2=1/(2*C^2*ln2),
|
|
Packit |
6c4009 |
a3=1/(3*C^3*ln2),
|
|
Packit |
6c4009 |
...
|
|
Packit |
6c4009 |
Log2 result is split by three parts: HH+HL+HLL
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
2) Calculation of y*log2(x)
|
|
Packit |
6c4009 |
Split y into YHi+YLo.
|
|
Packit |
6c4009 |
Get high PH and medium PL parts of y*log2|x|.
|
|
Packit |
6c4009 |
Get low PLL part of y*log2|x|.
|
|
Packit |
6c4009 |
Now we have PH+PL+PLL ~= y*log2|x|.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
3) Calculation of 2^(y*log2(x))
|
|
Packit |
6c4009 |
Let's represent PH+PL+PLL in the form N + j/2^expK + Z,
|
|
Packit |
6c4009 |
where expK=7 in this implementation, N and j are integers,
|
|
Packit |
6c4009 |
0<=j<=2^expK-1, |Z|<2^(-expK-1). Hence
|
|
Packit |
6c4009 |
2^(PH+PL+PLL) ~= 2^N * 2^(j/2^expK) * 2^Z,
|
|
Packit |
6c4009 |
where 2^(j/2^expK) is stored in a table, and
|
|
Packit |
6c4009 |
2^Z ~= 1 + B1*Z + B2*Z^2 ... + B5*Z^5.
|
|
Packit |
6c4009 |
We compute 2^(PH+PL+PLL) as follows:
|
|
Packit |
6c4009 |
Break PH into PHH + PHL, where PHH = N + j/2^expK.
|
|
Packit |
6c4009 |
Z = PHL + PL + PLL
|
|
Packit |
6c4009 |
Exp2Poly = B1*Z + B2*Z^2 ... + B5*Z^5
|
|
Packit |
6c4009 |
Get 2^(j/2^expK) from table in the form THI+TLO.
|
|
Packit |
6c4009 |
Now we have 2^(PH+PL+PLL) ~= 2^N * (THI + TLO) * (1 + Exp2Poly).
|
|
Packit |
6c4009 |
Get significand of 2^(PH+PL+PLL) in the form ResHi+ResLo:
|
|
Packit |
6c4009 |
ResHi := THI
|
|
Packit |
6c4009 |
ResLo := THI * Exp2Poly + TLO
|
|
Packit |
6c4009 |
Get exponent ERes of the result:
|
|
Packit |
6c4009 |
Res := ResHi + ResLo:
|
|
Packit |
6c4009 |
Result := ex(Res) + N. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
pushq %rbp
|
|
Packit |
6c4009 |
cfi_adjust_cfa_offset (8)
|
|
Packit |
6c4009 |
cfi_rel_offset (%rbp, 0)
|
|
Packit |
6c4009 |
movq %rsp, %rbp
|
|
Packit |
6c4009 |
cfi_def_cfa_register (%rbp)
|
|
Packit |
6c4009 |
andq $-64, %rsp
|
|
Packit |
6c4009 |
subq $448, %rsp
|
|
Packit |
6c4009 |
lea __VPACK_ODD_ind.6357.0.1(%rip), %rcx
|
|
Packit |
6c4009 |
vmovups %ymm14, 320(%rsp)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* hi bits */
|
|
Packit |
6c4009 |
lea __VPACK_ODD_ind.6358.0.1(%rip), %rax
|
|
Packit |
6c4009 |
vmovups %ymm12, 256(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm9, 96(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm13, 224(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm15, 352(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm11, 384(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm10, 288(%rsp)
|
|
Packit |
6c4009 |
vmovups (%rcx), %ymm10
|
|
Packit |
6c4009 |
vmovups %ymm8, 160(%rsp)
|
|
Packit |
6c4009 |
vmovdqa %ymm1, %ymm9
|
|
Packit |
6c4009 |
movq __svml_spow_data@GOTPCREL(%rip), %rdx
|
|
Packit |
6c4009 |
vextractf128 $1, %ymm0, %xmm7
|
|
Packit |
6c4009 |
vcvtps2pd %xmm0, %ymm14
|
|
Packit |
6c4009 |
vcvtps2pd %xmm7, %ymm12
|
|
Packit |
6c4009 |
vpsubd _NMINNORM(%rdx), %ymm0, %ymm7
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* preserve mantissa, set input exponent to 2^(-10) */
|
|
Packit |
6c4009 |
vandpd _ExpMask(%rdx), %ymm14, %ymm3
|
|
Packit |
6c4009 |
vandpd _ExpMask(%rdx), %ymm12, %ymm13
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* exponent bits selection */
|
|
Packit |
6c4009 |
vpsrlq $20, %ymm12, %ymm12
|
|
Packit |
6c4009 |
vpsrlq $20, %ymm14, %ymm14
|
|
Packit |
6c4009 |
vextractf128 $1, %ymm9, %xmm2
|
|
Packit |
6c4009 |
vcvtps2pd %xmm9, %ymm1
|
|
Packit |
6c4009 |
vpand _ABSMASK(%rdx), %ymm9, %ymm8
|
|
Packit |
6c4009 |
vcvtps2pd %xmm2, %ymm6
|
|
Packit |
6c4009 |
vorpd _Two10(%rdx), %ymm3, %ymm2
|
|
Packit |
6c4009 |
vorpd _Two10(%rdx), %ymm13, %ymm3
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* reciprocal approximation good to at least 11 bits */
|
|
Packit |
6c4009 |
vcvtpd2ps %ymm2, %xmm5
|
|
Packit |
6c4009 |
vcvtpd2ps %ymm3, %xmm15
|
|
Packit |
6c4009 |
vrcpps %xmm5, %xmm4
|
|
Packit |
6c4009 |
vrcpps %xmm15, %xmm11
|
|
Packit |
6c4009 |
vcvtps2pd %xmm4, %ymm13
|
|
Packit |
6c4009 |
vcvtps2pd %xmm11, %ymm4
|
|
Packit |
6c4009 |
vpermps %ymm12, %ymm10, %ymm11
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* round reciprocal to nearest integer, will have 1+9 mantissa bits */
|
|
Packit |
6c4009 |
vroundpd $0, %ymm13, %ymm12
|
|
Packit |
6c4009 |
vpermps %ymm14, %ymm10, %ymm5
|
|
Packit |
6c4009 |
vroundpd $0, %ymm4, %ymm14
|
|
Packit |
6c4009 |
vmovupd _One(%rdx), %ymm4
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* table lookup */
|
|
Packit |
6c4009 |
vpsrlq $40, %ymm12, %ymm10
|
|
Packit |
6c4009 |
vfmsub213pd %ymm4, %ymm12, %ymm2
|
|
Packit |
6c4009 |
vfmsub213pd %ymm4, %ymm14, %ymm3
|
|
Packit |
6c4009 |
vcmpgt_oqpd _Threshold(%rdx), %ymm12, %ymm12
|
|
Packit |
6c4009 |
vxorpd %ymm4, %ymm4, %ymm4
|
|
Packit |
6c4009 |
vandpd _Bias(%rdx), %ymm12, %ymm12
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* biased exponent in DP format */
|
|
Packit |
6c4009 |
vcvtdq2pd %xmm11, %ymm13
|
|
Packit |
6c4009 |
vpcmpeqd %ymm11, %ymm11, %ymm11
|
|
Packit |
6c4009 |
vgatherqpd %ymm11, _Log2Rcp_lookup(%rdx,%ymm10), %ymm4
|
|
Packit |
6c4009 |
vpsrlq $40, %ymm14, %ymm10
|
|
Packit |
6c4009 |
vcmpgt_oqpd _Threshold(%rdx), %ymm14, %ymm14
|
|
Packit |
6c4009 |
vpcmpeqd %ymm11, %ymm11, %ymm11
|
|
Packit |
6c4009 |
vandpd _Bias(%rdx), %ymm14, %ymm14
|
|
Packit |
6c4009 |
vcvtdq2pd %xmm5, %ymm15
|
|
Packit |
6c4009 |
vxorpd %ymm5, %ymm5, %ymm5
|
|
Packit |
6c4009 |
vgatherqpd %ymm11, _Log2Rcp_lookup(%rdx,%ymm10), %ymm5
|
|
Packit |
6c4009 |
vorpd _Bias1(%rdx), %ymm12, %ymm11
|
|
Packit |
6c4009 |
vorpd _Bias1(%rdx), %ymm14, %ymm10
|
|
Packit |
6c4009 |
vsubpd %ymm11, %ymm15, %ymm11
|
|
Packit |
6c4009 |
vsubpd %ymm10, %ymm13, %ymm14
|
|
Packit |
6c4009 |
vmovupd _poly_coeff_4(%rdx), %ymm15
|
|
Packit |
6c4009 |
vmovupd _poly_coeff_3(%rdx), %ymm13
|
|
Packit |
6c4009 |
vmulpd %ymm3, %ymm3, %ymm10
|
|
Packit |
6c4009 |
vfmadd213pd %ymm15, %ymm3, %ymm13
|
|
Packit |
6c4009 |
vmovdqa %ymm15, %ymm12
|
|
Packit |
6c4009 |
vfmadd231pd _poly_coeff_3(%rdx), %ymm2, %ymm12
|
|
Packit |
6c4009 |
vmulpd %ymm2, %ymm2, %ymm15
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* reconstruction */
|
|
Packit |
6c4009 |
vfmadd213pd %ymm3, %ymm10, %ymm13
|
|
Packit |
6c4009 |
vfmadd213pd %ymm2, %ymm15, %ymm12
|
|
Packit |
6c4009 |
vaddpd %ymm5, %ymm13, %ymm13
|
|
Packit |
6c4009 |
vaddpd %ymm4, %ymm12, %ymm2
|
|
Packit |
6c4009 |
vfmadd231pd _L2(%rdx), %ymm14, %ymm13
|
|
Packit |
6c4009 |
vfmadd132pd _L2(%rdx), %ymm2, %ymm11
|
|
Packit |
6c4009 |
vmulpd %ymm6, %ymm13, %ymm2
|
|
Packit |
6c4009 |
vmulpd %ymm1, %ymm11, %ymm10
|
|
Packit |
6c4009 |
vmulpd __dbInvLn2(%rdx), %ymm2, %ymm6
|
|
Packit |
6c4009 |
vmulpd __dbInvLn2(%rdx), %ymm10, %ymm15
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* to round down; if dR is an integer we will get R = 1, which is ok */
|
|
Packit |
6c4009 |
vsubpd __dbHALF(%rdx), %ymm6, %ymm3
|
|
Packit |
6c4009 |
vsubpd __dbHALF(%rdx), %ymm15, %ymm1
|
|
Packit |
6c4009 |
vaddpd __dbShifter(%rdx), %ymm3, %ymm13
|
|
Packit |
6c4009 |
vaddpd __dbShifter(%rdx), %ymm1, %ymm14
|
|
Packit |
6c4009 |
vsubpd __dbShifter(%rdx), %ymm13, %ymm12
|
|
Packit |
6c4009 |
vmovups (%rax), %ymm1
|
|
Packit |
6c4009 |
vsubpd __dbShifter(%rdx), %ymm14, %ymm11
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* [0..1) */
|
|
Packit |
6c4009 |
vsubpd %ymm12, %ymm6, %ymm6
|
|
Packit |
6c4009 |
vpermps %ymm10, %ymm1, %ymm3
|
|
Packit |
6c4009 |
vpermps %ymm2, %ymm1, %ymm10
|
|
Packit |
6c4009 |
vpcmpgtd _NMAXVAL(%rdx), %ymm7, %ymm4
|
|
Packit |
6c4009 |
vpcmpgtd _INF(%rdx), %ymm8, %ymm1
|
|
Packit |
6c4009 |
vpcmpeqd _NMAXVAL(%rdx), %ymm7, %ymm7
|
|
Packit |
6c4009 |
vpcmpeqd _INF(%rdx), %ymm8, %ymm8
|
|
Packit |
6c4009 |
vpor %ymm7, %ymm4, %ymm2
|
|
Packit |
6c4009 |
vpor %ymm8, %ymm1, %ymm1
|
|
Packit |
6c4009 |
vsubpd %ymm11, %ymm15, %ymm7
|
|
Packit |
6c4009 |
vinsertf128 $1, %xmm10, %ymm3, %ymm10
|
|
Packit |
6c4009 |
vpor %ymm1, %ymm2, %ymm3
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* iAbsX = iAbsX&iAbsMask */
|
|
Packit |
6c4009 |
vandps __iAbsMask(%rdx), %ymm10, %ymm10
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* iRangeMask = (iAbsX>iDomainRange) */
|
|
Packit |
6c4009 |
vpcmpgtd __iDomainRange(%rdx), %ymm10, %ymm4
|
|
Packit |
6c4009 |
vpor %ymm4, %ymm3, %ymm5
|
|
Packit |
6c4009 |
vmulpd __dbC1(%rdx), %ymm7, %ymm4
|
|
Packit |
6c4009 |
vmovmskps %ymm5, %ecx
|
|
Packit |
6c4009 |
vmulpd __dbC1(%rdx), %ymm6, %ymm5
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* low K bits */
|
|
Packit |
6c4009 |
vandps __lbLOWKBITS(%rdx), %ymm14, %ymm6
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* dpP= _dbT+lJ*T_ITEM_GRAN */
|
|
Packit |
6c4009 |
vxorpd %ymm7, %ymm7, %ymm7
|
|
Packit |
6c4009 |
vpcmpeqd %ymm1, %ymm1, %ymm1
|
|
Packit |
6c4009 |
vandps __lbLOWKBITS(%rdx), %ymm13, %ymm2
|
|
Packit |
6c4009 |
vxorpd %ymm10, %ymm10, %ymm10
|
|
Packit |
6c4009 |
vpcmpeqd %ymm3, %ymm3, %ymm3
|
|
Packit |
6c4009 |
vgatherqpd %ymm1, 13952(%rdx,%ymm6,8), %ymm7
|
|
Packit |
6c4009 |
vgatherqpd %ymm3, 13952(%rdx,%ymm2,8), %ymm10
|
|
Packit |
6c4009 |
vpsrlq $11, %ymm14, %ymm14
|
|
Packit |
6c4009 |
vpsrlq $11, %ymm13, %ymm13
|
|
Packit |
6c4009 |
vfmadd213pd %ymm7, %ymm4, %ymm7
|
|
Packit |
6c4009 |
vfmadd213pd %ymm10, %ymm5, %ymm10
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* NB : including +/- sign for the exponent!! */
|
|
Packit |
6c4009 |
vpsllq $52, %ymm14, %ymm8
|
|
Packit |
6c4009 |
vpsllq $52, %ymm13, %ymm11
|
|
Packit |
6c4009 |
vpaddq %ymm8, %ymm7, %ymm12
|
|
Packit |
6c4009 |
vpaddq %ymm11, %ymm10, %ymm1
|
|
Packit |
6c4009 |
vcvtpd2ps %ymm12, %xmm15
|
|
Packit |
6c4009 |
vcvtpd2ps %ymm1, %xmm2
|
|
Packit |
6c4009 |
vinsertf128 $1, %xmm2, %ymm15, %ymm1
|
|
Packit |
6c4009 |
testl %ecx, %ecx
|
|
Packit |
6c4009 |
jne .LBL_1_3
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_2:
|
|
Packit |
6c4009 |
cfi_remember_state
|
|
Packit |
6c4009 |
vmovups 160(%rsp), %ymm8
|
|
Packit |
6c4009 |
vmovups 96(%rsp), %ymm9
|
|
Packit |
6c4009 |
vmovups 288(%rsp), %ymm10
|
|
Packit |
6c4009 |
vmovups 384(%rsp), %ymm11
|
|
Packit |
6c4009 |
vmovups 256(%rsp), %ymm12
|
|
Packit |
6c4009 |
vmovups 224(%rsp), %ymm13
|
|
Packit |
6c4009 |
vmovups 320(%rsp), %ymm14
|
|
Packit |
6c4009 |
vmovups 352(%rsp), %ymm15
|
|
Packit |
6c4009 |
vmovdqa %ymm1, %ymm0
|
|
Packit |
6c4009 |
movq %rbp, %rsp
|
|
Packit |
6c4009 |
cfi_def_cfa_register (%rsp)
|
|
Packit |
6c4009 |
popq %rbp
|
|
Packit |
6c4009 |
cfi_adjust_cfa_offset (-8)
|
|
Packit |
6c4009 |
cfi_restore (%rbp)
|
|
Packit |
6c4009 |
ret
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_3:
|
|
Packit |
6c4009 |
cfi_restore_state
|
|
Packit |
6c4009 |
vmovups %ymm0, 64(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm9, 128(%rsp)
|
|
Packit |
6c4009 |
vmovups %ymm1, 192(%rsp)
|
|
Packit |
6c4009 |
je .LBL_1_2
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
xorb %dl, %dl
|
|
Packit |
6c4009 |
xorl %eax, %eax
|
|
Packit |
6c4009 |
movq %rsi, 8(%rsp)
|
|
Packit |
6c4009 |
movq %rdi, (%rsp)
|
|
Packit |
6c4009 |
movq %r12, 40(%rsp)
|
|
Packit |
6c4009 |
cfi_offset_rel_rsp (12, 40)
|
|
Packit |
6c4009 |
movb %dl, %r12b
|
|
Packit |
6c4009 |
movq %r13, 32(%rsp)
|
|
Packit |
6c4009 |
cfi_offset_rel_rsp (13, 32)
|
|
Packit |
6c4009 |
movl %ecx, %r13d
|
|
Packit |
6c4009 |
movq %r14, 24(%rsp)
|
|
Packit |
6c4009 |
cfi_offset_rel_rsp (14, 24)
|
|
Packit |
6c4009 |
movl %eax, %r14d
|
|
Packit |
6c4009 |
movq %r15, 16(%rsp)
|
|
Packit |
6c4009 |
cfi_offset_rel_rsp (15, 16)
|
|
Packit |
6c4009 |
cfi_remember_state
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_6:
|
|
Packit |
6c4009 |
btl %r14d, %r13d
|
|
Packit |
6c4009 |
jc .LBL_1_12
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_7:
|
|
Packit |
6c4009 |
lea 1(%r14), %esi
|
|
Packit |
6c4009 |
btl %esi, %r13d
|
|
Packit |
6c4009 |
jc .LBL_1_10
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_8:
|
|
Packit |
6c4009 |
incb %r12b
|
|
Packit |
6c4009 |
addl $2, %r14d
|
|
Packit |
6c4009 |
cmpb $16, %r12b
|
|
Packit |
6c4009 |
jb .LBL_1_6
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
movq 8(%rsp), %rsi
|
|
Packit |
6c4009 |
movq (%rsp), %rdi
|
|
Packit |
6c4009 |
movq 40(%rsp), %r12
|
|
Packit |
6c4009 |
cfi_restore (%r12)
|
|
Packit |
6c4009 |
movq 32(%rsp), %r13
|
|
Packit |
6c4009 |
cfi_restore (%r13)
|
|
Packit |
6c4009 |
movq 24(%rsp), %r14
|
|
Packit |
6c4009 |
cfi_restore (%r14)
|
|
Packit |
6c4009 |
movq 16(%rsp), %r15
|
|
Packit |
6c4009 |
cfi_restore (%r15)
|
|
Packit |
6c4009 |
vmovups 192(%rsp), %ymm1
|
|
Packit |
6c4009 |
jmp .LBL_1_2
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_10:
|
|
Packit |
6c4009 |
cfi_restore_state
|
|
Packit |
6c4009 |
movzbl %r12b, %r15d
|
|
Packit |
6c4009 |
vmovss 68(%rsp,%r15,8), %xmm0
|
|
Packit |
6c4009 |
vmovss 132(%rsp,%r15,8), %xmm1
|
|
Packit |
6c4009 |
vzeroupper
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
call JUMPTARGET(__powf_finite)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
vmovss %xmm0, 196(%rsp,%r15,8)
|
|
Packit |
6c4009 |
jmp .LBL_1_8
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.LBL_1_12:
|
|
Packit |
6c4009 |
movzbl %r12b, %r15d
|
|
Packit |
6c4009 |
vmovss 64(%rsp,%r15,8), %xmm0
|
|
Packit |
6c4009 |
vmovss 128(%rsp,%r15,8), %xmm1
|
|
Packit |
6c4009 |
vzeroupper
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
call JUMPTARGET(__powf_finite)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
vmovss %xmm0, 192(%rsp,%r15,8)
|
|
Packit |
6c4009 |
jmp .LBL_1_7
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
END(_ZGVdN8vv_powf_avx2)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
.section .rodata, "a"
|
|
Packit |
6c4009 |
__VPACK_ODD_ind.6357.0.1:
|
|
Packit |
6c4009 |
.long 1
|
|
Packit |
6c4009 |
.long 3
|
|
Packit |
6c4009 |
.long 5
|
|
Packit |
6c4009 |
.long 7
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.space 32, 0x00
|
|
Packit |
6c4009 |
__VPACK_ODD_ind.6358.0.1:
|
|
Packit |
6c4009 |
.long 1
|
|
Packit |
6c4009 |
.long 3
|
|
Packit |
6c4009 |
.long 5
|
|
Packit |
6c4009 |
.long 7
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.long 0
|
|
Packit |
6c4009 |
.long 0
|