Skip to content

stage1: compiler crash when bitcasting vectors #12119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sharpobject opened this issue Jul 14, 2022 · 0 comments
Closed

stage1: compiler crash when bitcasting vectors #12119

sharpobject opened this issue Jul 14, 2022 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Milestone

Comments

@sharpobject
Copy link
Contributor

Zig Version

0.10.0-dev.2997+1653a9b25

Steps to Reproduce

Compile this file:

const u8x32 = @Vector(32, u8);
const u32x8 = @Vector(8, u32);
pub fn main() anyerror!void {
const zerox32: u8x32 = [_]u8{0} ** 32;
const bigsum: u32x8 = @bitCast(u32x8, zerox32);
_ = bigsum;
}

Expected Behavior

The compiler does not crash.

Actual Behavior

The compiler crashes.

@sharpobject sharpobject added the bug Observed behavior contradicts documented or intended behavior label Jul 14, 2022
@Vexu Vexu added the stage1 The process of building from source via WebAssembly and the C backend. label Jul 14, 2022
@Vexu Vexu added this to the 0.12.0 milestone Jul 14, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 16, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 17, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 18, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 18, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 21, 2022
@andrewrk andrewrk modified the milestones: 0.12.0, 0.11.0 Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
Development

No branches or pull requests

3 participants