Merge pull request #5790 from martin-frbg/issue5627-3

Correct offsets in PowerPC SCAL assembly under FreeBSD and re-enable for PPC970
This commit is contained in:
Martin Kroeker
2026-04-30 23:20:04 +02:00
committed by GitHub
3 changed files with 10 additions and 8 deletions

View File

@@ -90,9 +90,3 @@ CROTKERNEL = ../arm/zrot.c
ZROTKERNEL = ../arm/zrot.c
endif
ifeq ($(OSNAME), FreeBSD)
SSCALKERNEL = ../arm/scal.c
DSCALKERNEL = ../arm/scal.c
CSCALKERNEL = ../arm/zscal.c
ZSCALKERNEL = ../arm/zscal.c
endif

View File

@@ -91,8 +91,12 @@
fcmpu cr0, FZERO, ALPHA
bne- cr0, LL(A1I1)
LDLONG FLAG, 120(SP)
cmpwi cr0, FLAG, 1
#if defined(__FreeBSD__)
LDLONG FLAG, 104(SP)
#else
LDLONG FLAG, 120(SP)
#endif
cmpwi cr0, FLAG, 1
beq- cr0, LL(A1I1)
cmpwi cr0, INCX, SIZE

View File

@@ -96,7 +96,11 @@
fcmpu cr0, FZERO, ALPHA_I
bne- cr0, LL(A1I1)
#if defined(__FreeBSD__)
LDLONG FLAG, 112(SP)
#else
LDLONG FLAG, 128(SP)
#endif
cmpwi cr0, FLAG, 1
beq- cr0, LL(A1I1)