[Gmp-commit] /var/hg/gmp: Clear CF properly.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Aug 20 03:18:33 CEST 2023
details: /var/hg/gmp/rev/798ca4da0556
changeset: 18438:798ca4da0556
user: Torbjorn Granlund <tg at gmplib.org>
date: Sun Aug 20 03:18:25 2023 +0200
description:
Clear CF properly.
diffstat:
mpn/s390_64/addmul_1.asm | 2 +-
mpn/s390_64/mul_1.asm | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4e849884bdd8 -r 798ca4da0556 mpn/s390_64/addmul_1.asm
--- a/mpn/s390_64/addmul_1.asm Sun Aug 20 01:38:19 2023 +0200
+++ b/mpn/s390_64/addmul_1.asm Sun Aug 20 03:18:25 2023 +0200
@@ -109,7 +109,7 @@
alg %r9, 0(rp)
lghi idx, -16
j L(m2)
-L(b00): aghi cy, 0 C clear CF
+L(b00): clgr %r0, %r0 C clear CF
L(top): lg %r1, 0(idx,up)
lg %r7, 8(idx,up)
diff -r 4e849884bdd8 -r 798ca4da0556 mpn/s390_64/mul_1.asm
--- a/mpn/s390_64/mul_1.asm Sun Aug 20 01:38:19 2023 +0200
+++ b/mpn/s390_64/mul_1.asm Sun Aug 20 03:18:25 2023 +0200
@@ -86,9 +86,9 @@
srlg n, n, 2
jne L(b00)
L(b10): lghi idx, -16
-C aghi %r8, 0 C clear CF
+C clgr %r0, %r0 C clear CF
j L(mid)
-L(b00): aghi %r8, 0 C clear CF
+L(b00): clgr %r0, %r0 C clear CF
lghi idx, 0
L(top): lg %r1, 0(idx,up)
More information about the gmp-commit
mailing list