Amend the assembler so it uses only 32bit value.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22750)
mov $out,x1
mov $len,x2
mov $bsz,x3
- cmp x4, #0 // x4 = 'next' argument
+ cmp w4, #0 // w4 = 'next' argument
bne .Lnext_block
.Loop_squeeze:
subi $out,r4,1 ; prepare for stbu
mr $len,r5
mr $bsz,r6
- ${UCMP}i r7,0 ; r7 = 'next' argument
+ cmplwi r7,0 ; r7 = 'next' argument
bne .Lnext_block
b .Loop_squeeze
mov %rsi,$out
mov %rdx,$len
mov %rcx,$bsz
- bt \$0,$next
+ bt \$0,${next}d
jc .Lnext_block
jmp .Loop_squeeze