Skip to content

Confusing semantics of br-instructions #1259

Open
@joelonsql

Description

@joelonsql

From https://webassembly.org/docs/semantics/

"br: branch to a given label in an enclosing construct"

The br-family instructions in WebAssembly are very different from assemblies like LLVM IR where you can jump to arbitrary labels. I think this should be pointed out in the documentation.

I think this would be a better description of this instruction:

"br: break to block at given nesting-level in an enclosing construct"

Since "br" works more like a "break" in C than a "goto" in C or a "br" in LLVM IR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions