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

exporting a C var args function triggers LLVM assertion when targeting non-Darwin aarch64 #14096

Open
andrewrk opened this issue Dec 28, 2022 · 0 comments
Labels
arch-aarch64 64-bit ARM backend-llvm The LLVM backend outputs an LLVM IR Module. bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness. os-linux os-windows upstream An issue with a third party project that Zig uses.
Milestone

Comments

@andrewrk
Copy link
Member

Zig Version

0.11.0-dev.986+5ca1753ff

Steps to Reproduce and Observed Behavior

Enable the disabled behavior tests and then:

$ stage3/bin/zig test ../test/behavior.zig -I../test -target aarch64-windows
LLVM Emit Object... zig: /home/andy/Downloads/llvm-project-15/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:8597: llvm::SDValue llvm::AArch64TargetLowering::LowerVAARG(llvm::SDValue, llvm::SelectionDAG&) const: Assertion `Subtarget->isTargetDarwin() && "automatic va_arg instruction only works on Darwin"' failed.

Expected Behavior

tests passed

@andrewrk andrewrk added bug Observed behavior contradicts documented or intended behavior os-windows os-linux frontend Tokenization, parsing, AstGen, Sema, and Liveness. arch-aarch64 64-bit ARM labels Dec 28, 2022
@andrewrk andrewrk added this to the 0.11.0 milestone Dec 28, 2022
@andrewrk andrewrk added backend-llvm The LLVM backend outputs an LLVM IR Module. upstream An issue with a third party project that Zig uses. labels Dec 28, 2022
andrewrk added a commit that referenced this issue Dec 28, 2022
@andrewrk andrewrk changed the title exporting a C var args function does not work on aarch64 except for macos exporting a C var args function triggers LLVM assertion when targeting non-Darwin aarch64 Dec 28, 2022
@andrewrk andrewrk modified the milestones: 0.11.0, 0.12.0 Jun 19, 2023
andrewrk added a commit that referenced this issue Aug 25, 2023
See tracking issues #14096 and #16961.

Also, any time a test is skipped it should link to the open bug report
for it.
andrewrk added a commit that referenced this issue Sep 19, 2023
See tracking issues #14096 and #16961.

Also, any time a test is skipped it should link to the open bug report
for it.
@andrewrk andrewrk modified the milestones: 0.14.0, 0.16.0 Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-aarch64 64-bit ARM backend-llvm The LLVM backend outputs an LLVM IR Module. bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness. os-linux os-windows upstream An issue with a third party project that Zig uses.
Projects
None yet
Development

No branches or pull requests

1 participant