test(asm): reject symbol "s" operands cleanly + lock (symbol-op prep)

A symbol operand (constraint "s") feeds a function/global symbol whose
mangled name the template emits — enabling a DIRECT `bl %[fn]` (one
fewer indirection than register-indirect `blr`). Until now `"s" = fn`
fell through to emit and produced an LLVM-verifier crash (param type
mismatch). Reject it at lowering with a clear diagnostic instead, and
lock that with examples/1656-platform-asm-symbol-operand.sx. The next
commit implements it and flips the example to run (→ 42).
This commit is contained in:
agra
2026-06-16 08:19:18 +03:00
parent 1346a2d020
commit c187122531
5 changed files with 66 additions and 1 deletions

View File

@@ -0,0 +1 @@