Stream: git-wasmtime

Topic: wasmtime / PR #1582 Fix ImmLogic.invert(), and with it, `...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 01:35):

cfallin opened PR #1582 (assigned to bnjbvr) from aarch64-fcopysign to master:

Previously, fcopysign was mysteriously failing to pass the
float_misc spec test. This was tracked down to bad logical-immediate
masks used to separate the sign and not-sign bits. In particular, the
masks for the and-not operations were wrong. The invert() function on
an ImmLogic immediate, it turns out, assumed every immediate would be
used by a 64-bit instruction; ImmLogic immediates are subtly different
for 32-bit instructions. This change tracks the instruction size (32 or
64 bits) intended for use with each such immediate, and passes it back
into maybe_from_u64 when computing the inverted immediate.

Addresses one of the failures (float_misc) for #1521 (test failures)
and presumably helps #1519 (SpiderMonkey integration).

<!--

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 (Apr 23 2020 at 01:35):

cfallin assigned PR #1582 to bnjbvr.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 01:35):

cfallin assigned PR #1582 to bnjbvr.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 09:05):

jgouly submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 09:05):

jgouly submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 09:05):

jgouly created PR Review Comment:

Can we just get rid of from_raw() and use maybe_from_u64().unwrap()?

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 09:16):

jgouly submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 09:16):

jgouly created PR Review Comment:

This fixes f32 and f64 _bitwise.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 09:39):

bnjbvr submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 23 2020 at 19:53):

cfallin updated PR #1582 (assigned to bnjbvr) from aarch64-fcopysign to master:

Previously, fcopysign was mysteriously failing to pass the
float_misc spec test. This was tracked down to bad logical-immediate
masks used to separate the sign and not-sign bits. In particular, the
masks for the and-not operations were wrong. The invert() function on
an ImmLogic immediate, it turns out, assumed every immediate would be
used by a 64-bit instruction; ImmLogic immediates are subtly different
for 32-bit instructions. This change tracks the instruction size (32 or
64 bits) intended for use with each such immediate, and passes it back
into maybe_from_u64 when computing the inverted immediate.

Addresses one of the failures (float_misc) for #1521 (test failures)
and presumably helps #1519 (SpiderMonkey integration).

<!--

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 (Apr 23 2020 at 20:06):

cfallin updated PR #1582 (assigned to bnjbvr) from aarch64-fcopysign to master:

Previously, fcopysign was mysteriously failing to pass the
float_misc spec test. This was tracked down to bad logical-immediate
masks used to separate the sign and not-sign bits. In particular, the
masks for the and-not operations were wrong. The invert() function on
an ImmLogic immediate, it turns out, assumed every immediate would be
used by a 64-bit instruction; ImmLogic immediates are subtly different
for 32-bit instructions. This change tracks the instruction size (32 or
64 bits) intended for use with each such immediate, and passes it back
into maybe_from_u64 when computing the inverted immediate.

Addresses one of the failures (float_misc) for #1521 (test failures)
and presumably helps #1519 (SpiderMonkey integration).

<!--

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 (Apr 23 2020 at 20:42):

cfallin merged PR #1582.


Last updated: Oct 23 2024 at 20:03 UTC