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
generate_tsl_neon-asimd/include/generated/definitions/mask_ls/mask_ls_neon.hpp:850:36:
warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
850 | if ((imask >> i) & 0b1 == true) {
| ^~~~~~~~~~~~~
This looks like the generated code is "wrong". If == is evaluated first, the code checks if (mask >> i) & true, where true will just be 1. So this has the same effect in the end. You can probably just remove the == true because any value != 0 should evaluate to true anyway.
The text was updated successfully, but these errors were encountered:
I'm getting the following warning with NEON:
This looks like the generated code is "wrong". If
==
is evaluated first, the code checks if(mask >> i) & true
, wheretrue
will just be1
. So this has the same effect in the end. You can probably just remove the== true
because any value != 0 should evaluate to true anyway.The text was updated successfully, but these errors were encountered: