kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

ret42.c (526B)


      1 /* Minimal round-trip vertical slice: a leaf function.
      2  *
      3  * At -O1 this compiles to a branch-free, relocation-free .text body
      4  * (prologue stp / epilogue ldp + a movz + ret), so it round-trips through
      5  * `cc -S | as` without needing any operand symbolization (Phase 2). It is
      6  * the smallest program that exercises every lane (L0/L1/L2) end to end.
      7  *
      8  * Entry is `test_main` to match the shared exec harness (jit-runner /
      9  * link-exe-runner + start.c). The exit code is the L2 oracle.
     10  */
     11 int test_main(void) { return 42; }