You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the distance code works, the matrixmultneon code does not, and building it leads to the following error:
<instantiation>:1:24: error: invalid operand for instruction
MUL V6.4H, V0.4H, V3.4H[0]
^
The book says:
MUL V6.4H, V0.4H, V3.4H[0]
This is multiplying each lane in V0 by the scalar contained in a specific lane of V3. This shows how we typically access a value in a specific lane by appending [lane number] to the end of the register specifier—counting lanes from zero.
You're digging into this deeper than I did, not sure what's up here. The NEON code we use mostly still is C, just using the low-level intrinsics like vcombine_s64.
HelloSilicon/Chapter 13/matrixmultneon.s
Line 34 in 5cd41ac
While the distance code works, the matrixmultneon code does not, and building it leads to the following error:
The book says:
Adding
-arch arm64e
does not change anything.Maybe @steipete has an idea?
The text was updated successfully, but these errors were encountered: