The ROM builders do not set A8, so markers 4 and 10 are no longer
presented as return values:
- property_called=1 and attrs_called=1 are plain post-call flags. The
gate requires the flag, states that the property has no server read-back
(zero X errors is the only runtime check), and keeps the black margin
as the real CWBackPixel proof. Marker 14 pins the 160x120 fill
geometry (0xA00078) so the margin sample cannot become vacuous.
- InternAtom wording: the display marker only proves the connection was
live before the call; stage 14 cannot distinguish the intended _XSend
block from a crash/wrong import. The isolated probe is narrative entry
evidence, not a gate check.
- XSetWindowAttributes attrs = {0}; replaces the unsigned int * zeroing
loop.
- Fix the stale image_roundtrip stage-11 comment (text pixels now set
stage 12).
- GC wording is 'source call sites; runtime entry not proven', not
'proves call presence'.
Make the wider-Xlib evidence non-vacuous:
- Child starts with background 1; CWBackPixel=0 and a 160x120 fill leave a
black margin sampled at screen (300,240). XChangeWindowAttributes now
returns a marker (10) and the margin is required; the attrs=1 negative
control turns it white and fails the gate.
- Marker 4 is the XChangeProperty return (nonzero, not a read-back).
Marker 11 counts the two explicit XChangeGC calls (presence + no X error;
the ROM entry is a 2-arg cache flush). XDrawString is proven by counting
the set pixels of an XGetImage band (marker 12, 67 in the run).
- Marker 13 stores the live Display just before XInternAtom, so the skip
cannot be a crash/wrong import; the gate/report state that entry is
evidenced by the isolated probe.
- Zero the XSetWindowAttributes struct.
- Pin the six wider addresses as constants in validate-syms.sh.
- Print parent(...) instead of win(...) (parent-relative, not child).
- Correct the report's configure/p_img justification and add Fix round 1.
- scripts/m4/run.sh prints M7 MAME: PASS for an M7 marker line; M4 output
is unchanged.
Add and validate XMapSubwindows, XChangeWindowAttributes,
XConfigureWindow, XInternAtom, XChangeProperty and XChangeGC from the
GUI_APPS table, extend x11m4.h with the X11R4 masks/structs and the ROM
call shapes, and add the xmore client plus its MAME gate.
xmore exercises a parent/child window, XMapSubwindows, the fixed-mask
move/resize ConfigureWindow, WM_NAME (predefined atom 39), CWBackPixel,
XChangeGC, XLoadFont/XDrawString, XFillRectangle, and a heap
XCreateImage/XPutImage/XGetImage/XPutImage/XDestroyImage round trip with
XSync. Markers at 018A8000+n*20 show stage 14, image 0x13F and 0 errors.
XInternAtom is kept as the last call with an explicit 0xFFFFFFFF skip
marker: the ROM _XSend scatter path (0x3F9B44C0) that carries the name
does not complete in the loader harness (the same direct-send limit the
M4 xshow client records). If it returns, the client uses the atom and
advances to stage 15. The GC uses the server default font because the
ROM XLoadFont handle is rejected as GCFont (BadFont); XLoadFont itself is
still exercised and marked.
The M4 runner now accepts M4/M7 marker and PASS lines; M4 behavior is
unchanged.
Extract the final -O0 @debug_ptr body and require !dbg on the
--bitptr/--lower-bitptr chain (mul, shl, ptrtoint, add, inttoptr) and on
every load/store through the computed pointer. Line-table rows alone could
stay green if the barrier dropped locations only on the instructions it
synthesizes; this IR-level check fails in that case.
Refresh the stale gate header (three functions, -O2 smoke, indexed
.debug_addr, ptr=30) and note that the exact .debug_addr entry list is
deterministic at the current compiler but should be relaxed on a DWARF
emission change.
- debug.sh: add a pointer/array runtime-GEP function (debug_ptr) with
asserted line rows/low PC, and build the same TU with tms-clang -g -O2
through --bitptr/opt/--scale/--lower-bitptr/instcombine; require the
-O2 object's .debug_* sections and dwarfdump its debug.c/function/low PC.
Read .debug_addr entries by index and assert the CU low/high PC and
.debug_line file index.
- oracle.sh: load both the GSPLNK and tms-link images in MAME with the same
markers; require a minimum count and the names the checks depend on, and
document the absolute/undefined C_EXT exclusion.
- cinit.sh: assert the object relocation (0x10, .bss/_cinit_target base,
addend 0), compare the 28-byte optional header with GSPLNK, and link
CINIT.O alone to exercise the synthesized public cinit symbol.
- tmscoff.py: point the order-relaxation comment at the Task 1 lit test that
still pins the llc section order.
- oracle.sh: link the M5 native objects with GSPLNK and tms-link, require
identical allocated bytes/public symbols through the independent reader,
then run the tms-link image in MAME and decode _native_value with dis34.
- cinit.sh: a C TI .cinit record table (packed u16 count/u32 destination/
data words) linked by tms-link, the termtris copy loop in MAME, cinit at
the .cinit origin, the destination resolved to a bit address, and
bytes/placement equal to GSPLNK.
- longname.sh: a 44-character public function defined in one TU and called
from another, linked by tms-link, full name in the map, runs in MAME.
- debug.sh: tms-clang -g -> TI-COFF -> tms-link --keep-debug, .debug_*
wrapped in a minimal ELF32 container and validated with llvm-dwarfdump
(debug.c, line rows, low PC 0x314000, high_pc byte size, string names),
plus the stripped image loading in MAME.
- tms-clang: pass -g through to clang; the bit-pointer passes preserve !dbg.
- tms-link: accept GSPA's .text/.data/.bss/.cinit order as well as llc's
.text/.data/.cinit/.bss order (the real startup cinit.asm shape).
Fix the fix-round regression: the base matcher stripped any zext/trunc,
so `(unsigned short)(unsigned)p + 24` lost its 16-bit truncation and
became `p + 24` at both -O0 and -O2. stripWideningCasts now strips only
zext/sext and truncs to at least the 32-bit pointer width; a trunc below
i32 stops the match, leaving the shape unbarriered with its
`and 0xffff`/`and 0xff` intact (the base commit's value).
Allow widening sext on the base as well, closing the signed 64-bit
pointer-int shape: `(char *)((long long)(int)p + 24)` now becomes
`@__tms_bitptr(i32 24, ptr p)` instead of `getelementptr i8, p, 192`.
Use the fixed 32-bit TMS34010 pointer width rather than an absent module
DataLayout's 64-bit default, which misjudged a trunc to i32.
Add @narrow16/@narrow8/@narrow16and/@late64s to bitptr.ll (narrow shapes
must not emit a call), negative tests for the mismatched declaration,
body and non-call use fatal paths, a late64s M0 check with the late
positive scoped to @late itself, and narrow16/narrow8/late64s runtime
markers plus IR checks in the M7 gate. Update the pointer-o2.sh header.
Extend --bitptr's raw inttoptr barrier through the zext/trunc clang emits
for a 64-bit pointer-int expression, so
`inttoptr(add(zext(ptrtoint p), i64 24))` becomes
`@__tms_bitptr(i32 24, ptr p)` instead of a post-scale `getelementptr
i8, p, 192`. The pointer is 32-bit, so the addend is zext/truncated to
the low word. The matcher also covers the reversed add operand order and
the sub form (negated addend).
Harden getBitPtrFn/lower_bitptr_calls: an existing @__tms_bitptr with a
mismatched signature or body, or a non-CallInst/mismatched use, now fails
loudly instead of leaving an undefined external.
Add @late64 (and sub/reversed/trunc) to bitptr.ll, assert the
nounwind readnone declaration, add a late64 M0 shape check (24, never
192) and a late64 runtime marker to the M7 gate. Tighten the gate's
one-scale check to reject a second shl i32 in copy_back and to match
SLL 3/SLL 6 exactly (not SLL 31). Update the stale M6 comments in
bitscale.cpp and the c-torture -O2 comment.
Replace the M6 pre-opt --scale with --bitptr: every source GEP (and an
inttoptr of a bit addend over a ptrtoint base) becomes an opaque
@__tms_bitptr(i32 bitoff, ptr base) call (nounwind readnone), so the
optimizer cannot canonicalize an already-bit offset back into a byte GEP
for the post-opt --scale to multiply by 8 again.
tms-clang -O2 is now clang -> --bitptr -> opt default<O2> -> --scale
(optimizer byte GEPs only) -> --lower-bitptr -> opt instcombine. -O0 is
clang -> --bitptr -> --lower-bitptr. --lower-bitptr restores
inttoptr(add(ptrtoint base, bitoff)); the final instcombine restores the
M0 int_diff 8/32 folding and the shim's emit_uint64 needs
instcombine<no-verify-fixpoint> for a known zext/nneg non-idempotent
shape. Constant-expression GEPs keep the inttoptr/add form.
Remove the shim memmove constant-step workaround (natural d += n) and
add the M7 -O2 pointer gate (C driver at -O2, GSPA/GSPLNK, MAME, exact
markers/bytes and one-scale IR/asm evidence). Update the M0 shape
checks for the final instcombine's bit-index `getelementptr i8, %p, 24`
late form (still 24 bits; the old 192 is rejected).
- 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.
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.
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).