boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs

commit dd82213eb8aa8db05b2bfaddfde3317d69f80d86
parent 6bb13576cb3eaa4c6bf33ad1104009f019b79512
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Thu, 23 Apr 2026 17:44:16 -0700

tests/m1pp/12-braced-args: compose §1 local labels in WHILE_NEZ

Replace the literal `:loop__` label (which would collide if the macro
were invoked twice) with `:@loop` / `&@loop`, demonstrating §1+§2
composing. WHILE_NEZ is expansion id 2 in this fixture, so the output
becomes `:loop__2` / `&loop__2`.

Diffstat:
Mtests/m1pp/12-braced-args.M1pp | 4++--
Mtests/m1pp/12-braced-args.expected | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/m1pp/12-braced-args.M1pp b/tests/m1pp/12-braced-args.M1pp @@ -14,9 +14,9 @@ %endm %macro WHILE_NEZ(r, body) -:loop__ +:@loop body -bnez r :loop__ +bnez r &@loop %endm %macro ID(x) diff --git a/tests/m1pp/12-braced-args.expected b/tests/m1pp/12-braced-args.expected @@ -24,12 +24,12 @@ li ( r0 , 0 ) -:loop__ +:loop__2 addi ( rx , rx , -1 ) inner_block -bnez rx :loop__ +bnez rx &loop__2