Closed xiaozhuai closed 1 week ago
Hi, your code looks reasonable. The issue is that SVE does not properly support operators; until recently == did not even work at all. It seems they return a vector type instead of the expected svbool_t type. Thus we recommend using Eq() instead. BTW you might want to compute 1.0f/a once and then multiply by that three times?
Thus we recommend using Eq() instead.
Thanks @jan-wassenberg It works now.
Should I also replace other operators, such as *
with hn::Mul
and /
with hn::Div
?
Is it recommended to do so?
Glad to hear :) Yes, I'd recommend Mul etc. because RVV compilers still did not support operators, last time I checked. But if you never intend to run on RVV, at least the arithmetic operators are probably OK.
Hi there, my code compile failed on arm64 android, but it can compile on x64 android and arm android. And here is the error message and code. BTW, it can compile on 1.1.0