Use // instead of # for comments inside armv8 asm.
Using # has slightly ambiguous with the preprocessor.
Fixed: 496
Change-Id: Ib718dde957ee541d580096128405a7edde3b1bd4
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/52785
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl b/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl
index 24b5c9b..9bd7f49 100644
--- a/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl
+++ b/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl
@@ -378,9 +378,9 @@
.cfi_offset w30, -72
.cfi_offset w29, -80
mov x29, sp
-# We probably could do .cfi_def_cfa w29, 80 at this point, but since
-# we don't actually use the frame pointer like that, it's probably not
-# worth bothering.
+ // We probably could do .cfi_def_cfa w29, 80 at this point, but since
+ // we don't actually use the frame pointer like that, it's probably not
+ // worth bothering.
stp d8, d9, [sp, #16]
stp d10, d11, [sp, #32]
stp d12, d13, [sp, #48]
@@ -881,7 +881,7 @@
&poly_add_vec($LEN_STORE);
&poly_mul();
$code.=<<___;
- # Final reduction step
+ // Final reduction step
sub $t1, xzr, $one
orr $t2, xzr, #3
subs $t0, $acc0, #-5
@@ -986,9 +986,9 @@
.cfi_offset w30, -72
.cfi_offset w29, -80
mov x29, sp
-# We probably could do .cfi_def_cfa w29, 80 at this point, but since
-# we don't actually use the frame pointer like that, it's probably not
-# worth bothering.
+ // We probably could do .cfi_def_cfa w29, 80 at this point, but since
+ // we don't actually use the frame pointer like that, it's probably not
+ // worth bothering.
stp d8, d9, [sp, #16]
stp d10, d11, [sp, #32]
stp d12, d13, [sp, #48]
@@ -1502,7 +1502,7 @@
&poly_add_vec($LEN_STORE);
&poly_mul();
$code.=<<___;
- # Final reduction step
+ // Final reduction step
sub $t1, xzr, $one
orr $t2, xzr, #3
subs $t0, $acc0, #-5