summaryrefslogtreecommitdiff
path: root/vere/ext/gmp/gen/aarch64-macos/mpn/bdiv_dbm1c.s
blob: 8c606f402d9f3ce515b620dce80ed12a8bbffc96 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123




















































	.text
	.align	4
	.text
	.align	3
	.globl	___gmpn_bdiv_dbm1c 
	
___gmpn_bdiv_dbm1c:
	ldr	x5, [x1], #8
	ands	x6, x2, #3
	b.eq	Lfi0
	cmp	x6, #2
	b.cc	Lfi1
	b.eq	Lfi2

Lfi3:	mul	x12, x5, x3
	umulh	x13, x5, x3
	ldr	x5, [x1], #8
	b	Llo3

Lfi0:	mul	x10, x5, x3
	umulh	x11, x5, x3
	ldr	x5, [x1], #8
	b	Llo0

Lfi1:	subs	x2, x2, #1
	mul	x12, x5, x3
	umulh	x13, x5, x3
	b.ls	Lwd1
	ldr	x5, [x1], #8
	b	Llo1

Lfi2:	mul	x10, x5, x3
	umulh	x11, x5, x3
	ldr	x5, [x1], #8
	b	Llo2

Ltop:	ldr	x5, [x1], #8
	subs	x4, x4, x10
	str	x4, [x0], #8
	sbc	x4, x4, x11
Llo1:	mul	x10, x5, x3
	umulh	x11, x5, x3
	ldr	x5, [x1], #8
	subs	x4, x4, x12
	str	x4, [x0], #8
	sbc	x4, x4, x13
Llo0:	mul	x12, x5, x3
	umulh	x13, x5, x3
	ldr	x5, [x1], #8
	subs	x4, x4, x10
	str	x4, [x0], #8
	sbc	x4, x4, x11
Llo3:	mul	x10, x5, x3
	umulh	x11, x5, x3
	ldr	x5, [x1], #8
	subs	x4, x4, x12
	str	x4, [x0], #8
	sbc	x4, x4, x13
Llo2:	subs	x2, x2, #4
	mul	x12, x5, x3
	umulh	x13, x5, x3
	b.hi	Ltop

Lwd2:	subs	x4, x4, x10
	str	x4, [x0], #8
	sbc	x4, x4, x11
Lwd1:	subs	x4, x4, x12
	str	x4, [x0]
	sbc	x0, x4, x13
	ret