Skip to content
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

Globally defined simd.f32x16 causes compiler crash #4267

Open
Skytrias opened this issue Sep 18, 2024 · 0 comments
Open

Globally defined simd.f32x16 causes compiler crash #4267

Skytrias opened this issue Sep 18, 2024 · 0 comments
Labels

Comments

@Skytrias
Copy link
Contributor

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System & Odin Version:
    Odin: dev-2024-09:8814170ed
    OS: Windows 10 Home Basic (version: 22H2), build 19045.4780
    CPU: AMD Ryzen 5 3600 6-Core Processor
    RAM: 16310 MiB
    Backend: LLVM 18.1.8

Expected Behavior

Compile as expected - Globals should behave like locals

Current Behavior

Causes the compiler to crash

Steps to Reproduce

package main

import "core:simd"

WIDE_ZERO: simd.f32x16 = f32(0)
WIDE_ONE: simd.f32x16 = f32(1)
WIDE_TWO: simd.f32x16 = f32(2)
WIDE_THREE: simd.f32x16 = f32(3) 

main :: proc() {}

When they are defined as Constants it doesnt crash.

Failure Logs

LLVM Error:
Global variable initializer type does not match global variable type!
ptr @graphics.WIDE_ZERO
Global variable initializer type does not match global variable type!
ptr @graphics.WIDE_ONE
Global variable initializer type does not match global variable type!
ptr @graphics.WIDE_TWO
Global variable initializer type does not match global variable type!
ptr @graphics.WIDE_THREE
@laytan laytan added the bug label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants