You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
t27b: f64 in AArch64 FP registers (first rejection in 28 specs) #6180
t27b (cli/t27b, the native AArch64 backend) has no floating point: every spec that uses f64 is refused. On the Railway t27b lab run of 2026-10-04 (https://t27b-lab-production.up.railway.app/latest.json), type f64 is the first rejecting construct in 28 spec files and occurs 328 times in all; f32 follows behind it.
The task: f64 values in AArch64 FP registers (d0-d7 for arguments and results per AAPCS64), with + - * /, comparisons, unary minus, float literals, @floatFromInt/@intFromFloat the way the reference (t27c gen + zig test) spells them, and f64 params, returns, locals and constants. Results must match the reference bit for bit (IEEE-754 double, round to nearest even). Math library calls (@sqrt, std.math.*) may stay rejections in this issue.
The steward (not the bee) merges, measures the corpus on the lab and reports on #6063. CI runs the cargo tests; do not build on the owner's machine.
Boundary
cli/t27b/src/lower.rs
cli/t27b/src/ir.rs
cli/t27b/src/codegen.rs
cli/t27b/src/a64.rs
cli/t27b/src/eval.rs
cli/t27b/tests/differential.rs
cli/t27b/tests/encoder.rs
User Scenarios
A spec with fn half(x: f64) f64 { return x / 2.0; } and a test asserting half(3.0) == 1.5 passes under t27b test as under zig test.
A spec mixing integer and f64 code through explicit conversions gets the same verdict from t27b as from the reference path.
A spec calling @sqrt is still rejected, and t27b corpus --blockers names the call.
FR-002 -- the A64 encoder gains the FP instructions it emits, each with an encoding test in cli/t27b/tests/encoder.rs checked against known machine words.
FR-003 -- the reference evaluator (eval.rs) computes f64 the same way, and a differential test named f64_... compares JIT and evaluator; a disagreement is a failure, never a skip.
FR-004 -- no interpreter fallback.
Success Criteria
grep -c "fn f64_" cli/t27b/tests/differential.rs prints at least 1
grep -c "fadd\|FADD" cli/t27b/src/a64.rs prints at least 1
grep -c "interpreter fallback" cli/t27b/src/lower.rs prints 0
Activity