libmd aarch64: Use ands instead of bics to round down the length

GNU as does not accept bics with two register operands but instead
requires three register operands.  However, clang assembles the bics
instruction to ands anyway, so just use ands directly.

Reviewed by:	fuz
Differential Revision:	https://reviews.freebsd.org/D55155
This commit is contained in:
John Baldwin
2026-02-09 11:26:29 -05:00
parent ec5d466491
commit 244f498074
+1 -1
View File
@@ -134,7 +134,7 @@ d_ .req m5
stp x23, x24, [sp, #0x20]
stp x25, x26, [sp, #0x30]
bics len, len, #63 // length in blocks
ands len, len, #~63 // length in blocks
add end, buf, len // end pointer
beq .Lend // was len == 0 after BICS?