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

LLVM 18 regression: -OReleaseSmall crashes LLVM on x86_64-macos #19851

Open
andrewrk opened this issue May 3, 2024 · 0 comments
Open

LLVM 18 regression: -OReleaseSmall crashes LLVM on x86_64-macos #19851

andrewrk opened this issue May 3, 2024 · 0 comments
Labels
arch-x86_64 backend-llvm The LLVM backend outputs an LLVM IR Module. bug Observed behavior contradicts documented or intended behavior os-macos regression It worked in a previous version of Zig, but stopped working. upstream An issue with a third party project that Zig uses.
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented May 3, 2024

upstream bug report: llvm/llvm-project#91005

$ zig build-exe -target x86_64-macos -mcpu=ivybridge -OReleaseSmall
LLVM ERROR: Cannot select: t98: v8f16,ch = X86ISD::VBROADCAST_LOAD<(load (s16) from constant-pool)> t0, t106
  t106: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<half 0xH7FFF> 0
    t105: i64 = TargetConstantPool<half 0xH7FFF> 0
In function: __mulhc3
Aborted (core dumped)
@andrewrk andrewrk added bug Observed behavior contradicts documented or intended behavior os-macos upstream An issue with a third party project that Zig uses. arch-x86_64 backend-llvm The LLVM backend outputs an LLVM IR Module. regression It worked in a previous version of Zig, but stopped working. labels May 3, 2024
@andrewrk andrewrk added this to the 0.14.0 milestone May 3, 2024
andrewrk added a commit that referenced this issue May 3, 2024
andrewrk added a commit that referenced this issue May 8, 2024
andrewrk added a commit that referenced this issue May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x86_64 backend-llvm The LLVM backend outputs an LLVM IR Module. bug Observed behavior contradicts documented or intended behavior os-macos regression It worked in a previous version of Zig, but stopped working. upstream An issue with a third party project that Zig uses.
Projects
None yet
Development

No branches or pull requests

1 participant