Skip to content

Document that stack_addr needs pointer size, not target size #1111

Open
@jyn514

Description

@jyn514

Given the following CLIF:

function u0:0() -> i32 system_v {
    ss0 = explicit_slot 4

ebb0:
    v0 = stack_addr.i32 ss0
    v1 = load.i32 v0
    return v1
}

Cranelift will mistakenly think the stack_addr.i32 is illegal: VerifierError { location: inst0, message: "v0 is a real GPR value defined by a ghost instruction" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    craneliftIssues related to the Cranelift code generatorcranelift:E-easyIssues suitable for newcomers to investigate, including Rust newcomers!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions