summaryrefslogtreecommitdiff
path: root/vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
committerpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
commitfcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch)
tree51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s
claude is gud
Diffstat (limited to 'vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s')
-rw-r--r--vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s90
1 files changed, 90 insertions, 0 deletions
diff --git a/vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s b/vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s
new file mode 100644
index 0000000..67819d4
--- /dev/null
+++ b/vere/ext/gmp/gen/aarch64-linux/mpn/copyi.s
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .text
+ .align 3
+ .globl __gmpn_copyi
+ .type __gmpn_copyi,@function
+__gmpn_copyi:
+ cmp x2, #3
+ b.le .Lbc
+
+
+ tbz x0, #3, .Lal2
+ ld1 {v22.1d}, [x1], #8
+ sub x2, x2, #1
+ st1 {v22.1d}, [x0], #8
+
+.Lal2: ld1 {v26.2d}, [x1], #16
+ sub x2, x2, #6
+ tbnz x2, #63, .Lend
+
+ .align 4
+.Ltop: ld1 {v22.2d}, [x1], #16
+ st1 {v26.2d}, [x0], #16
+ ld1 {v26.2d}, [x1], #16
+ st1 {v22.2d}, [x0], #16
+ sub x2, x2, #4
+ tbz x2, #63, .Ltop
+
+.Lend: st1 {v26.2d}, [x0], #16
+
+
+
+.Lbc: tbz x2, #1, .Ltl1
+ ld1 {v22.2d}, [x1], #16
+ st1 {v22.2d}, [x0], #16
+.Ltl1: tbz x2, #0, .Ltl2
+ ld1 {v22.1d}, [x1]
+ st1 {v22.1d}, [x0]
+.Ltl2: ret
+ .size __gmpn_copyi,.-__gmpn_copyi