ref: 91e0b478068248e8b66a1d4580aa7d70eae188b3
parent: 3eff6189d386055a720a7a004bd2e20e479387f5
author: Martin Storsjö <martin@martin.st>
date: Sun Oct 21 18:09:04 EDT 2018
arm64: Don't use uxth for extending a register armasm64 fails to assemble this: error A2173: syntax error in expression sub x7, x7, w4, uxth This clearly is a bug in armasm64, and will be reported. For now, this workaround should be harmless though, as we've just loaded the register with ldrh, so the upper parts of the register should be zeroed.
--- a/src/arm/64/mc.S
+++ b/src/arm/64/mc.S
@@ -112,7 +112,7 @@
\type v4, v0, v1
ldrh w4, [x7, x4, lsl #1]
\type v5, v2, v3
- sub x7, x7, w4, uxth
+ sub x7, x7, w4, uxtw
br x7
4:
cmp w5, #4