Skip to content

Commit

Permalink
asm/ct_is_square_mod_384-armv8.pl: fix a bug.
Browse files Browse the repository at this point in the history
Thanks to Guido Vranken for report.
  • Loading branch information
dot-asm committed May 16, 2022
1 parent 3af87cc commit 69d3807
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/asm/ct_is_square_mod_384-armv8.pl
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@

////////////////////////////////////////// last iteration
//bl __ab_approximation_30 // |a| and |b| are exact,
//ldr $a_, [$in_ptr,#8*6] // just load
mov $b_, @acc[6] // ldr $b_, [$in_ptr,#8*0]
//ldr $a_, [$in_ptr,#8*6] // and loaded
//ldr $b_, [$in_ptr,#8*0]
mov $cnt, #48 // 48 is 768%30 + 30
bl __inner_loop_48
ldr x30, [x29,#8]
Expand Down Expand Up @@ -369,6 +369,8 @@
___
}

{
my ($a_, $b_) = (@acc[0], @acc[6]);
$code.=<<___;
.type __inner_loop_48, %function
.align 4
Expand All @@ -393,6 +395,7 @@
ret
.size __inner_loop_48,.-__inner_loop_48
___
}

print $code;
close STDOUT;

0 comments on commit 69d3807

Please sign in to comment.