Stream: git-wasmtime

Topic: wasmtime / PR #2042 Aarch64: mask shift-amounts incorpora...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2020 at 21:55):

cfallin opened PR #2042 from aarch64-fix-regshift-mask to main:

We had previously fixed a bug in which constant shift amounts should be
masked to modulo the number of bits in the operand (#1999); however, we
did not fix the analogous case for shifts incorporated into the second
register argument of ALU instructions that support integrated shifts.
This failure to mask resulted in illegal instructions being generated,
e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1653502. This PR
fixes the issue by masking the amount, as the shift semantics require.

<!--

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 (Jul 17 2020 at 21:55):

cfallin requested bnjbvr and julian-seward1 for a review on PR #2042.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2020 at 21:55):

cfallin requested bnjbvr and julian-seward1 for a review on PR #2042.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2020 at 21:55):

cfallin updated PR #2042 from aarch64-fix-regshift-mask to main:

We had previously fixed a bug in which constant shift amounts should be
masked to modulo the number of bits in the operand (#1999); however, we
did not fix the analogous case for shifts incorporated into the second
register argument of ALU instructions that support integrated shifts.
This failure to mask resulted in illegal instructions being generated,
e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1653502. This PR
fixes the issue by masking the amount, as the shift semantics require.

<!--

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 (Jul 17 2020 at 21:55):

cfallin edited PR #2042 from aarch64-fix-regshift-mask to main:

We had previously fixed a bug in which constant shift amounts should be
masked to modulo the number of bits in the operand; however, we
did not fix the analogous case for shifts incorporated into the second
register argument of ALU instructions that support integrated shifts.
This failure to mask resulted in illegal instructions being generated,
e.g. in https://bugzilla.mozilla.org/show_bug.cgi?id=1653502. This PR
fixes the issue by masking the amount, as the shift semantics require.

<!--

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 (Jul 18 2020 at 06:46):

julian-seward1 submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 19 2020 at 02:33):

cfallin merged PR #2042.


Last updated: Nov 22 2024 at 16:03 UTC