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
At b_escape function can produce SIGILL cpu exception.
If you compile in to target_arch x86_64 and target_feature avx2 and sse2, you will be forced to execute this function in a cpu with the previous characteristics. In any other way it will produce this exception
There is no cheap way to implement runtime detection until rust-lang/rust#57775 is resolved.
The text was updated successfully, but these errors were encountered:
zzau13
changed the title
Can **SIGILL** compile with cpu features and execute without it
Can SIGILL if compile with cpu features and execute without it
Jul 2, 2020
So this might be a bit late but wouldn't it be possible to add a check for the function, i.e. a check that ensures the relevant input is additionally checked at runtime even if possibly expensive, with a build-time check for the current CPU features (Rust Docs)? This will make yarte slower on CPUs not supporting the features though this solution wouldn't exclude them at least.
@Chaostheorie Sorry for taking time to respond. Yes. A once call function can be added for check runtime cpu flags are the same as the compile cpu flags. This function could be launched at the beginning of the application and panic in case of error.
This will make yarte slower on CPUs not supporting the features though this solution wouldn't exclude them at least.
The other architectures are not excluded, for architectures other than x86_64 has no effect, the fallback is launched, basically because it is not implemented with any other architecture.
At
b_escape
function can produceSIGILL
cpu exception.If you compile in to target_arch
x86_64
and target_featureavx2
andsse2
, you will be forced to execute this function in a cpu with the previous characteristics. In any other way it will produce this exceptionThere is no cheap way to implement runtime detection until rust-lang/rust#57775 is resolved.
The text was updated successfully, but these errors were encountered: