Stream: git-wasmtime

Topic: wasmtime / issue #1906 [Cranelift] Add fmin / fmax varian...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 26 2021 at 17:37):

bjorn3 commented on issue #1906:

I believe the fmin_pseudo and fmax_pseudo instructions do this, but they are currently unimplemented for scalar types.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 26 2021 at 17:45):

bjorn3 commented on issue #1906:

Nope, they are not the right instructions. They still propagate NaN.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 15 2021 at 23:13):

akirilov-arm commented on issue #1906:

This proposal feels a bit redundant - is there any architecture that has a 1:1 mapping to this operation? Otherwise it is straightforward to pattern-match the equivalent operation sequences if the default lowering is not good enough. E.g. the minimum operation for 32-bit inputs:

v2 = fcmp eq v0, v0
v3 = select.f32 v2, v0, v1
v4 = fmin_pseudo v3, v1


Last updated: Nov 22 2024 at 17:03 UTC