Skip to content

compiler crash multiplying zero vector #13058

@Pyrolistical

Description

@Pyrolistical

Zig Version

0.10.0-dev.4217+9d8cdb855

Steps to Reproduce

  1. zig build-exe the following test.zig
pub fn main() !u8 {
    const v: @Vector(2, u8) = .{ 0, 0 };
    const v2 = v * v;

    return v2[0];
}

Expected Behavior

Builds exe

Actual Behavior

Crashes

$ zig build-exe test.zig
zsh: illegal hardware instruction  zig build-exe test.zig

Reproduced on x86_64-macos.12.6 if that matters.

Metadata

Metadata

Assignees

Labels

bugObserved behavior contradicts documented or intended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions