support f128 arguments in riscv self-hosted backend #23375
Labels
arch-riscv
32-bit and 64-bit RISC-V
backend-self-hosted
bug
Observed behavior contradicts documented or intended behavior
Milestone
Zig Version
0.15.0-dev.131+3b25bf47d
Steps to Reproduce and Observed Behavior
Create a test.zig:
Compile with:
Get something like:
The
unreachable
is:In
classifySystem
.Changing the
f128
tof64
avoids the crash. As does inlining the code inmain
. Or dropping the-fno-llvm
option. Or switching the targe tox86_64-linux-musl
. Theaarch64-linux-musl
also crashes the compiler (different reason, I think?).I ran into this on #23357 (see https://github.com/ziglang/zig/actions/runs/14071605497/job/39406816135?pr=23357). That PR has changes to
isInf
that caused the pre-existing"comptime fixed-width float non-zero divided by zero produces signed Inf"
test infloatop.zig
to start failing. Not clear to me why the existing code (which has anf128
@bitCast
too) wasn't triggering this.Expected Behavior
Compiles the code without crashing.
The text was updated successfully, but these errors were encountered: