Skip to content

emit MIR failed: InvalidInstruction (no encoding found) #24153

Open
@MasonRemaley

Description

@MasonRemaley

Zig Version

0.15.0-dev.769+4d7980645

Steps to Reproduce and Observed Behavior

I have a project that works with the LLVM backend, but when I build it with the x86 backend I get this output:

deps/engine_ui/src/widgets/Stats.zig:142:1: error: emit MIR failed: InvalidInstruction (Zig compiler bug)
fn draw(ctx: *anyopaque, event: Widget.UpdateEvent) void {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: error(x86_64_encoder): no encoding found for: none vmovupd m16 xmm none none

Let me know if a minimal repro would be helpful--that error sounds really specific, so I haven't put one together yet but I can.

Expected Behavior

I expected it to compile successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-x86_6464-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions