Stream: cranelift

Topic: ✔ `isub` on `I8`


view this post on Zulip scottmcm (Mar 06 2023 at 04:08):

I see that <https://docs.rs/cranelift/latest/cranelift/prelude/types/constant.I8.html> says

WARNING: arithmetic on 8bit integers is incomplete

I was about to use isub between two icmp results, rather than needing a bunch of selecting. Should I not to that, to avoid the arithmetic on I8?

view this post on Zulip Chris Fallin (Mar 06 2023 at 05:31):

That warning may be somewhat out of date; arithmetic on i8s should work now, and if anything doesn't, please feel free to file an issue!

view this post on Zulip scottmcm (Mar 06 2023 at 05:48):

Thanks! Glad to hear it.

view this post on Zulip Notification Bot (Mar 06 2023 at 05:48):

scottmcm has marked this topic as resolved.


Last updated: Dec 23 2024 at 12:05 UTC