commit 2adbfeaf8e480494bd81dba6cfa85c40aa87427a (tree)
parent c2b0d0242e00077b4a58a8b320fe6ec26753508a
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Fri, 20 Feb 2026 16:32:40 +0000
sema: add f80/f128 support to floatTypeBits, enable negxf2.zig
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/stage0/sema.c b/stage0/sema.c
@@ -2171,6 +2171,8 @@ static uint32_t floatTypeBits(InternPoolIndex ty) {
case IP_INDEX_F16_TYPE: return 16;
case IP_INDEX_F32_TYPE: return 32;
case IP_INDEX_F64_TYPE: return 64;
+ case IP_INDEX_F80_TYPE: return 80;
+ case IP_INDEX_F128_TYPE: return 128;
default: return 0;
}
}
diff --git a/stage0/stages_test.zig b/stage0/stages_test.zig
@@ -103,7 +103,7 @@ const corpus_files = .{
"../lib/std/os/uefi/tables/table_header.zig", // 214
"../lib/std/zig/llvm.zig", // 247
"../lib/compiler_rt/neghf2.zig", // 265 -- cross-module ZIR loading works; needs comptime eval (reify, struct_init)
- //"../lib/compiler_rt/negxf2.zig", // 265 -- @export+func_fancy handled; body analysis incomplete
+ "../lib/compiler_rt/negxf2.zig", // 265 -- @export+func_fancy handled; body analysis incomplete
//"../lib/compiler_rt/absvdi2.zig", // 311 -- @export+func_fancy handled; body analysis incomplete
//"../lib/compiler_rt/absvsi2.zig", // 311 -- @export+func_fancy handled; body analysis incomplete
//"../lib/compiler_rt/absvti2.zig", // 314 -- @export+func_fancy handled; body analysis incomplete