Files
2026-11-11 08:31:19 +00:00

10 lines
476 B
C

/* Late-GEP check: p + 3 bytes must reach llc as ADDI 24 -- the address unit is
* a bit and tms-bitaddr has already scaled the offset -- not ADDI 192.
*
* The plan's source also compared p + 3 with another pointer. That form
* lowers to setcc/branches, which the M1 backend deliberately does not have;
* this form exercises the same late-GEP contract without it. See the M1
* implementation design, sections 7.3 and 7.5.
*/
int late(char *p) { return (int)(p + 3); }