summaryrefslogtreecommitdiff
path: root/sysdeps/aarch64/fpu/libmvec_float_vlen4_powf.S
blob: 95e593c15129d9fc91f956987407ec2207f93270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* Single-precision 4 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 (_ZGVnN4vv_powf)
	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	s0, [sp, 272]
	ldr	s1, [sp, 288]
	bl powf
	str	s0, [sp, 272]
	ldr	s0, [sp, 276]
	ldr	s1, [sp, 292]
	bl powf
	str	s0, [sp, 276]
	ldr	s0, [sp, 280]
	ldr	s1, [sp, 296]
	bl powf
	str	s0, [sp, 280]
	ldr	s0, [sp, 284]
	ldr	s1, [sp, 300]
	bl powf
	str	s0, [sp, 284]
	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 (_ZGVnN4vv_powf)