Finch/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Claude 0ceaaa27c4
Floats as written, never fused; fma and muladd; f32/f64 bits, f16 and bf16
- a * b + c is two roundings on every processor and --cpu: the IR has no fast-math flags, and clang
  compiles it with -ffp-contract=on (checked in the assembly: never fused, also with FMA hardware)
- fma(a, b, c) / v.fma(b, c): one rounding, always (llvm.fma)
- muladd(a, b, c) / v.muladd(b, c): the fastest way here (llvm.fmuladd), what v.fma was before
- f32_bits / f32_from_bits / f64_bits / f64_from_bits: bitcasts, also of vectors
- f16_to_f32 / f32_to_f16 (LLVM half), bf16_to_f32 / f32_to_bf16 (integer ops, ties to even, NaN kept)
- docs (en, pl): what is guaranteed about floats, the new built-ins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Psc42moPLwP43Cmb9oZqSR
2026-11-01 15:25:40 +00:00
..
fail Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native 2026-11-01 13:50:35 +00:00
new Warnings for big copies: a struct with 256+ bytes of plain data as a parameter or in for x in list 2026-10-29 12:15:22 +01:00
run Floats as written, never fused; fma and muladd; f32/f64 bits, f16 and bf16 2026-11-01 15:25:40 +00:00
shared export fn and finch build --shared, in the compiler written in Finch; FINCH_PATH, FINCH_RT, FINCH_CC 2026-10-25 21:03:05 +01:00
tool finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
cross.sh Warnings for big copies: a struct with 256+ bytes of plain data as a parameter or in for x in list 2026-10-29 12:15:22 +01:00
lsp_test.py Warnings for big copies: a struct with 256+ bytes of plain data as a parameter or in for x in list 2026-10-29 12:15:22 +01:00
run.sh CI: find clang-c/Index.h and libclang where Ubuntu and Homebrew keep them; the language server on Windows paths 2026-10-29 11:42:18 +01:00
shared.sh The compiler is written in Finch, and nothing else: src/*.fch, built from a seed 2026-10-25 21:42:17 +01:00