gmp/gmp-6.2.1-arm64-invert_limb.patch
Richard Biener 8d0fee00b1 - Manually select the z13/z14 architecture level specific assembly routines
for s390x and SLFO since GMP lacks fat binary support there and also lacks
  a way to auto-detect the architecture level used at compile-time.
  [jsc#PED-3270]

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=99
2025-02-27 08:28:27 +00:00

15 lines
393 B
Diff

--- mpn/arm64/invert_limb.asm.orig 2020-12-09 08:22:02.101836933 +0100
+++ mpn/arm64/invert_limb.asm 2020-12-09 08:22:55.774456637 +0100
@@ -41,9 +41,9 @@
ASM_START()
PROLOGUE(mpn_invert_limb)
lsr x2, x0, #54
- LEA_HI( x1, approx_tab)
+ adrp x1, approx_tab
and x2, x2, #0x1fe
- LEA_LO( x1, approx_tab)
+ add x1, x1, :lo12:approx_tab
ldrh w3, [x1,x2]
lsr x4, x0, #24
add x4, x4, #1