Stream: git-wasmtime

Topic: wasmtime / PR #4709 x64: Compare source arguments in prod...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 17:49):

elliottt opened PR #4709 from trevor/produces-const-bug 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 (Aug 15 2022 at 17:57):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 18:00):

elliottt edited PR #4709 from trevor/produces-const-bug to main:

This PR changes the behavior of produces_const in the x64 backend to check that the two source registers are the same, rather than check that the second source and destination are the same. The reason for this change is a mismatch in behavior between the ISLE constructors for those pseudo instructions and the existing rust functions for constructing them: the rust functions always ensure that the first source and destination registers are the same, while the isle functions introduce a fresh destination register and take the two sources as arguments.

This change preserves the existing behavior for instructions constructed through the rust functions, but allows the lower.isle to use instructions like (x64_xor x x) where x is a fresh register without causing a panic in RA2.

<!--

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 (Aug 15 2022 at 18:01):

elliottt has marked PR #4709 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 18:51):

elliottt has enabled auto merge for PR #4709.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 19:00):

elliottt merged PR #4709.


Last updated: Nov 22 2024 at 17:03 UTC