diff options
author | Martin Storsjö <martin@martin.st> | 2018-10-21 22:09:04 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-10-21 22:14:09 +0300 |
commit | 91e0b478068248e8b66a1d4580aa7d70eae188b3 (patch) | |
tree | b57cf8be077b522b3ed23f8bccbdc68147bb0d35 /src/arm | |
parent | 3eff6189d386055a720a7a004bd2e20e479387f5 (diff) |
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.
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/64/mc.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arm/64/mc.S b/src/arm/64/mc.S index a9d2fe3..d12f602 100644 --- a/src/arm/64/mc.S +++ b/src/arm/64/mc.S @@ -112,7 +112,7 @@ function \type\()_8bpc_neon, export=1 \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 |