aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64/fpu/libmvec_double_vlen2_pow.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/aarch64/fpu/libmvec_double_vlen2_pow.S')
-rw-r--r--sysdeps/aarch64/fpu/libmvec_double_vlen2_pow.S62
1 files changed, 62 insertions, 0 deletions
diff --git a/sysdeps/aarch64/fpu/libmvec_double_vlen2_pow.S b/sysdeps/aarch64/fpu/libmvec_double_vlen2_pow.S
new file mode 100644
index 0000000000..85151482bf
--- /dev/null
+++ b/sysdeps/aarch64/fpu/libmvec_double_vlen2_pow.S
@@ -0,0 +1,62 @@
+/* Double-precision 2 element vector x^y function.
+ Copyright (C) 2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <sysdep.h>
+
+ENTRY (_ZGVnN2vv_pow)
+ stp x29, x30, [sp, -304]!
+ cfi_adjust_cfa_offset (304)
+ cfi_rel_offset (x29, 0)
+ cfi_rel_offset (x30, 8)
+ mov x29, sp
+ stp q8, q9, [sp, 16]
+ stp q10, q11, [sp, 48]
+ stp q12, q13, [sp, 80]
+ stp q14, q15, [sp, 112]
+ stp q16, q17, [sp, 144]
+ stp q18, q19, [sp, 176]
+ stp q20, q21, [sp, 208]
+ stp q22, q23, [sp, 240]
+
+ // Use per lane load/store to avoid endianness issues.
+ str q0, [sp, 272]
+ str q1, [sp, 288]
+ ldr d0, [sp, 272]
+ ldr d1, [sp, 288]
+ bl pow
+ str d0, [sp, 272]
+ ldr d0, [sp, 280]
+ ldr d1, [sp, 296]
+ bl pow
+ str d0, [sp, 280]
+ ldr q0, [sp, 272]
+
+ ldp q8, q9, [sp, 16]
+ ldp q10, q11, [sp, 48]
+ ldp q12, q13, [sp, 80]
+ ldp q14, q15, [sp, 112]
+ ldp q16, q17, [sp, 144]
+ ldp q18, q19, [sp, 176]
+ ldp q20, q21, [sp, 208]
+ ldp q22, q23, [sp, 240]
+ ldp x29, x30, [sp], 304
+ cfi_adjust_cfa_offset (304)
+ cfi_restore (x29)
+ cfi_restore (x30)
+ ret
+END (_ZGVnN2vv_pow)