Stream: git-wasmtime

Topic: wasmtime / PR #5123 Add iadd_overflow_trap


view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 19:58):

elliottt opened PR #5123 from trevor/iadd_overflow_trap to main:

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:01):

elliottt edited PR #5123 from trevor/iadd_overflow_trap to main:

Add a new instruction iadd_overflow_trap, which is a fused version of iadd_ifcout and trapif. Adding this instruction removes a dependency on the iflags type, and would allow us to move closer to removing it entirely.

The instruction is defined for the i32 and i64 types only, and is currently only used in the legalization of heap_addr.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:18):

elliottt updated PR #5123 from trevor/iadd_overflow_trap to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:31):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:31):

fitzgen created PR review comment:

I think we can just say

This is the same as iadd but traps on overflow instead of wrapping.

since iadd is a slightly less esoteric instruction than iadd_cout.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:31):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:53):

elliottt submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:53):

elliottt created PR review comment:

That's a good point, thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 20:56):

elliottt updated PR #5123 from trevor/iadd_overflow_trap to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 22:08):

elliottt has marked PR #5123 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2022 at 17:04):

elliottt updated PR #5123 from trevor/iadd_overflow_trap to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2022 at 17:31):

elliottt updated PR #5123 from trevor/iadd_overflow_trap to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2022 at 17:40):

elliottt updated PR #5123 from trevor/iadd_overflow_trap to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2022 at 17:54):

elliottt updated PR #5123 from trevor/iadd_overflow_trap to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 27 2022 at 16:43):

elliottt merged PR #5123.


Last updated: Dec 23 2024 at 12:05 UTC