83 Commits
Author SHA1 Message Date
arti e0cf441118 m6: apply the final-review fixes
- spec 4.2/7.4: the caller-allocated hidden return slot (no sret
  pointer), with the 1987 _mkbig/_callbig oracle recorded as binding;
  spec 8 annotates debug info as M7.
- README: qualify the complete-surface headline, name the sub-byte
  stride in the M7 ownership lists, and flag the default -O2 over-scale.
- shim: %c honours width and the '-' flag; a bare %c is unchanged.
- runtime gate: add %c width output and call rts.lib _isascii, checking
  it in the GSPLNK map (587 bytes, 13 markers).
- aggregate gate: return a packed bitfield struct by value and check
  its fields, sign extension and raw word (49 markers).
- tms-clang: default TMS_CLANG/TMS_OPT to build/llvm-clean-build/bin
  and fail clearly when a tool is missing; update the README example.
2026-11-14 09:46:52 +00:00
arti 094d2543f7 tests: correct the classifier format-scan comment 2026-11-14 06:16:40 +00:00
arti 2fec10b039 tests: fix M6 conformance review findings 2026-11-14 06:11:33 +00:00
arti bc92886312 tests: expand M6 conformance coverage 2026-11-14 05:33:50 +00:00
arti 5760a35867 tests: complete M6 printf coverage and document the bit-scale limits 2026-11-14 04:44:17 +00:00
arti 7aab6a6485 tests: fix printf precision edge cases (#, zero with precision 0) 2026-11-14 04:16:41 +00:00
arti 15201f31ba tests: restore the Task 6 bit-scale pipeline and memmove workaround 2026-11-14 03:22:23 +00:00
arti eb44a1aade Revert "tests: run SROA before the bit scale so pointer int casts stay bit-addressed"
This reverts commit 5379cd4629.
2026-11-14 03:22:10 +00:00
arti 5379cd4629 tests: run SROA before the bit scale so pointer int casts stay bit-addressed 2026-11-14 02:46:46 +00:00
arti 2fca960398 tests: scale the tms-clang pipeline once, after opt 2026-11-14 02:28:42 +00:00
arti 3005647f30 tests: M6 runtime, printf/sprintf and the linked flib/rts gate 2026-11-14 02:27:04 +00:00
arti 85c4a1778a tests: clarify the aggregate gate's linked-symbol check 2026-11-14 01:34:59 +00:00
arti 8be4a978cc tests: fix the aggregate gate and the -O0 driver scale 2026-11-14 01:31:11 +00:00
arti 12cb023b3c tests: M6 aggregate gate and late-GEP scaling
Add the M6 aggregate gate (structs/unions by value, 6-byte/5-word returns,
nested and mixed members, exact-copy guards) and scale every optimizer-created
GEP after opt in tms-clang; --normalize treated SROA's aggregate-split byte
offsets as bits.  The generic sweep now passes multiple-return-values-cross-
block-with-invoke.
2026-11-14 00:33:27 +00:00
arti ae73e6b054 tests: correct i64 memory-order comments 2026-11-13 22:39:15 +00:00
arti ded91f2054 tests: pin little-endian i64 memory and the aggregate-copy case 2026-11-13 22:24:59 +00:00
arti e997b3ff22 tests: add 64-bit bitfield containers to the M6 gate 2026-11-13 22:01:01 +00:00
arti 53f0b3c56b tests: M6 bitfield gate and layout oracle 2026-11-13 21:45:33 +00:00
arti b973ccd250 tests: M6 varargs gate and shim 2026-11-13 20:09:55 +00:00
arti 1a62878e93 tests: exercise M6 float branches, f64 select and rejections 2026-11-13 18:53:14 +00:00
arti f18115314c tests: M6 float/double gate 2026-11-13 17:27:56 +00:00
arti 581a264ab3 tests: harden M6 i64 gate and refresh the M5 boundary notes 2026-11-13 15:00:11 +00:00
arti c1d0378212 tests: M6 i64 gate
Adds the M6 i64 MAME gate (scripts/tests/m6/i64.sh, driver and
entry/check/link helpers) and updates the M5 boundary tests: the 64-bit
multiply diagnostic is now a positive inline-MPYS check, the reject-i64
lit fixtures use i128, and the generic expected-fail manifest drops the
tests that the i64 support now compiles (0 crashes, 121 pass).
2026-11-13 13:54:36 +00:00
arti dad0245d5e tests: harden M6 ABI probe compare/conversion/return 2026-11-13 12:38:01 +00:00
arti fa90562bb9 tests: M6 float/i64 ABI probe 2026-11-13 12:18:46 +00:00
arti 5ee3a6592c tests/docs: final M5 review fixes 2026-11-13 10:14:32 +00:00
arti 480f4de4a4 tests: M5 c-testsuite output subset 2026-11-13 07:28:53 +00:00
arti 3d9e6162bf tests: fix M5 c-torture failure accounting 2026-11-13 05:54:47 +00:00
arti cb1032a751 tests: M5 c-torture integer subset 2026-11-13 04:45:19 +00:00
arti 9baa05963c tests: harden M5 generic sweep signal handling 2026-11-13 01:59:59 +00:00
arti e5ee1686d8 tests: tighten M5 generic sweep timeout classification 2026-11-13 01:00:31 +00:00
arti 1869a1f015 tests: M5 CodeGen/Generic no-crash sweep 2026-11-13 00:54:50 +00:00
arti 1d95b99029 tests: fix M5 conformance review findings 2026-11-12 23:46:57 +00:00
arti a3d8070be6 tests: M5 conformance harness and shim 2026-11-12 22:43:04 +00:00
arti 97345c8b46 tests: harden M5 policy and private-name checks 2026-11-12 21:53:43 +00:00
arti 0b245867ab tests: M5 policy and hardening gate 2026-11-12 21:22:34 +00:00
arti cfff7ad14e tests: prove M5 VLA reservation in MAME 2026-11-12 19:31:05 +00:00
arti cdaaee62f3 tests: M5 robustness gate 2026-11-12 19:00:16 +00:00
arti 556df985b9 tests: accept M5 JR forms in the M4 branch gates 2026-11-12 18:08:39 +00:00
arti 8c2c784a41 tests: M5 MMTM/MMFM gate 2026-11-12 17:54:37 +00:00
arti 9b5ee500fc tests: tighten M5 JR coverage
jr.sh now asserts the recorded M3 baseline (882-byte .text, 14 JR branches,
2 zero-displacement absolute branches), checks that every JR is one word and
in range, and probes symbolic JRUC with disp 0, disp -128 (widen) and disp
-127 (stay short) through the MC relaxation path.

dis-roundtrip.sh pins the condition code per function again (_sumto LT and
EQ, _max2 GT, _lt LT) instead of the broken ${op#j[ra]} strip, keeping the
global at-least-one-JR check.

native-link.c's far conditional branch now spans ~279 words instead of ~151,
so a small codegen shrink cannot turn it back into a JR.
2026-11-12 17:11:38 +00:00
arti 1a6833045c tests: M5 JR relaxation gate
Add scripts/tests/m5/jr.sh: the M3 branch.c loop must use JR forms, llc's
asm and object .text must match, a symbolic out-of-range JRUC must relax to
JAUC, the M3 MAME markers must be unchanged, and the linked .text size must
show the saving against the all-JA baseline.

Update the M3 dis34 gate and the native-link gate for the new encoding: the
compiled branches are relative, so accept JR/JA condition codes and keep a
far conditional JA<cc> relocation in native-link.c.
2026-11-12 16:49:52 +00:00
arti d5740974cc tests: M5 native pipeline and M4 regressions 2026-11-12 16:15:20 +00:00
arti 8bbd536717 tests: extend M5 MC gates 2026-11-12 15:35:08 +00:00
arti 73ee5bf308 tests: M5 MC round-trip gate 2026-11-12 15:13:44 +00:00
arti 795515fe3f tests: cover branch and external COFF relocations 2026-11-12 14:30:07 +00:00
arti f098bdc613 tests: M5 native COFF link gate 2026-11-12 14:15:09 +00:00
arti 2636412c0e tests: extend the M5 object smoke gate 2026-11-12 13:43:31 +00:00
arti 719711ea3f tests: M5 native-object smoke gate 2026-11-12 13:31:23 +00:00
arti 5d980dc6e3 tests/docs: final M4 review fixes 2026-11-12 12:23:04 +00:00