I need to detect when addition of two i32's overflow, how I can do this using intcc::overflow?
I don't know how to use IntCC::Overflow
. I use the following in cg_clif instead: https://github.com/bjorn3/rustc_codegen_cranelift/blob/c5dff34ae97007ed5a6f53b9b8c71b4d40cde997/src/num.rs#L227-L235
this will generate more code for x64. There is really no way to do jo
on overflow for x64?
I don't know.
I think I found what I need. It is possible to use iadd_ifcout
+ brif
with IntCC::Overflow
Last updated: Nov 22 2024 at 16:03 UTC