Skip to content

LLVM wasm backend emitting non-trapping fp-to-int conversion sequences #5863

@sunfishcode

Description

@sunfishcode

WIth LLVM r319128, LLVM is now translating fptosi/fptoui into sequences which don't trap when the input is outside their domain. This fixes the associated LLVM bugs. It also means that Binaryen won't be able to provide configurable fp-to-int trapping behavior when used with LLVM wasm backend output.

This feature will be precluded by the nontrapping float-to-int conversion feature being added to wasm eventually anyway, so unless there are reasons to keep it, it seems better to me to omit this feature from the LLVM wasm backend rather than do something more complex to support it temporarily.

The test test_binaryen_trap_mode is currently failing with the LLVM wasm backend; assuming the various modes won't be supported, this test should be disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions