Skip to content

Commit

Permalink
fixup! OpenSSL armv8-mont.pl: Add purecap support
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdjhb committed Jul 3, 2024
1 parent abcdc0d commit 3a026cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto/openssl/crypto/bn/asm/armv8-mont.pl
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@
#ifdef __CHERI_PURE_CAPABILITY__
add $nptr,$nptr,$negnum,lsl#2 // rewind $nptr
sub $aptr,PTRN(sp),#0
cmp x0,x0 // clear carry flag
cmn x0,xzr // clear carry flag
#else
sub $nptr,$nptr,$num,lsl#2 // rewind $nptr
subs $aptr,PTRN(sp),#0 // clear carry flag
Expand Down Expand Up @@ -1597,7 +1597,7 @@
ldp $m2,$m3,[$np,#8*2]
#ifdef __CHERI_PURE_CAPABILITY__
add $np,$np,#8*4
cmp x0,x0 // clear carry bit
cmn x0,xzr // clear carry bit
#else
adds $np,$np,#8*4 // clear carry bit
#endif
Expand Down Expand Up @@ -1748,7 +1748,7 @@
ldp $m2,$m3,[$np,#8*2]
#ifdef __CHERI_PURE_CAPABILITY__
add $np,$np,#8*4
cmp x0,x0 // clear carry bit
cmn x0,xzr // clear carry bit
#else
adds $np,$np,#8*4 // clear carry bit
#endif
Expand Down Expand Up @@ -1919,7 +1919,7 @@
ldp $a2,$a3,[$ap,#8*2]
#ifdef __CHERI_PURE_CAPABILITY__
add $ap,$ap,#8*4
cmp x0,x0 // clear carry flag
cmn x0,xzr // clear carry bit
#else
adds $ap,$ap,#8*4 // clear carry bit
#endif
Expand Down

0 comments on commit 3a026cd

Please sign in to comment.