Files

29 lines
514 B
Go
Raw Permalink Normal View History

//go:build ignore
package main
import (
2026-03-06 20:14:02 +00:00
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
. "sources.truenas.cloud/code/avo/reg"
)
func main() {
TEXT("Formatting", NOSPLIT, "func()")
Doc("Formatting contains various cases to test the formatter.")
ADDQ(R8, R8)
Comment("One comment line between instructions.")
ADDQ(R8, R8)
Comment("Comment before label.")
Label("label")
Comment("Comment after label.")
ADDQ(R8, R8)
JMP(LabelRef("label"))
RET()
Generate()
}