summaryrefslogtreecommitdiff
path: root/vere/ext/gmp/gen/aarch64-linux/mpn/sublsh2_n.s
diff options
context:
space:
mode:
Diffstat (limited to 'vere/ext/gmp/gen/aarch64-linux/mpn/sublsh2_n.s')
-rw-r--r--vere/ext/gmp/gen/aarch64-linux/mpn/sublsh2_n.s161
1 files changed, 161 insertions, 0 deletions
diff --git a/vere/ext/gmp/gen/aarch64-linux/mpn/sublsh2_n.s b/vere/ext/gmp/gen/aarch64-linux/mpn/sublsh2_n.s
new file mode 100644
index 0000000..fa78221
--- /dev/null
+++ b/vere/ext/gmp/gen/aarch64-linux/mpn/sublsh2_n.s
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .text
+ .align 3
+ .globl __gmpn_sublsh2_n
+ .type __gmpn_sublsh2_n,@function
+__gmpn_sublsh2_n:
+ lsr x18, x3, #2
+ tbz x3, #0, .Lbx0
+
+.Lbx1: ldr x5, [x1]
+ tbnz x3, #1, .Lb11
+
+.Lb01: ldr x11, [x2]
+ cbz x18, .L1
+ ldp x8, x9, [x2,#8]
+ lsl x13, x11, #2
+ subs x15, x5, x13
+ str x15, [x0],#8
+ sub x1, x1, #24
+ sub x2, x2, #8
+ b .Lmid
+
+.L1: lsl x13, x11, #2
+ subs x15, x5, x13
+ str x15, [x0]
+ lsr x0, x11, 62
+ cinc x0, x0, cc
+ ret
+
+.Lb11: ldr x9, [x2]
+ ldp x10, x11, [x2,#8]!
+ lsl x13, x9, #2
+ subs x17, x5, x13
+ str x17, [x0],#8
+ sub x1, x1, #8
+ cbz x18, .Lend
+ b .Ltop
+
+.Lbx0: tbnz x3, #1, .Lb10
+
+.Lb00: subs x11, xzr, xzr
+ ldp x8, x9, [x2],#-16
+ sub x1, x1, #32
+ b .Lmid
+
+.Lb10: subs x9, xzr, xzr
+ ldp x10, x11, [x2]
+ sub x1, x1, #16
+ cbz x18, .Lend
+
+ .align 4
+.Ltop: ldp x4, x5, [x1,#16]
+ extr x12, x10, x9, #62
+ ldp x8, x9, [x2,#16]
+ extr x13, x11, x10, #62
+ sbcs x14, x4, x12
+ sbcs x15, x5, x13
+ stp x14, x15, [x0],#16
+.Lmid: ldp x4, x5, [x1,#32]!
+ extr x12, x8, x11, #62
+ ldp x10, x11, [x2,#32]!
+ extr x13, x9, x8, #62
+ sbcs x16, x4, x12
+ sbcs x17, x5, x13
+ stp x16, x17, [x0],#16
+ sub x18, x18, #1
+ cbnz x18, .Ltop
+
+.Lend: ldp x4, x5, [x1,#16]
+ extr x12, x10, x9, #62
+ extr x13, x11, x10, #62
+ sbcs x14, x4, x12
+ sbcs x15, x5, x13
+ stp x14, x15, [x0]
+ lsr x0, x11, 62
+ cinc x0, x0, cc
+ ret
+ .size __gmpn_sublsh2_n,.-__gmpn_sublsh2_n
+