diff --git a/src/crypto/subtle/xor_amd64.s b/src/crypto/subtle/xor_amd64.s index 8b04b587029..949424f87ae 100644 --- a/src/crypto/subtle/xor_amd64.s +++ b/src/crypto/subtle/xor_amd64.s @@ -18,6 +18,7 @@ TEXT ·xorBytes(SB), NOSPLIT, $0 aligned: MOVQ $0, AX // position in slices + PCALIGN $16 loop16b: MOVOU (SI)(AX*1), X0 // XOR 16byte forwards. MOVOU (CX)(AX*1), X1 @@ -28,6 +29,7 @@ loop16b: JNE loop16b RET + PCALIGN $16 loop_1b: SUBQ $1, DX // XOR 1byte backwards. MOVB (SI)(DX*1), DI