Skip to content

Non-trapping instruction for signed division on overflow #1390

Open
@gkdn

Description

@gkdn

Existing signed division traps on overflow:
https://github.com/sunfishcode/wasm-reference-manual/blob/master/WebAssembly.md#integer-divide-signed

This results in costlier division emulation in languages like Java that doesn't trap on division by -1.

(Also see #986 for prior art)

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