29 lines
514 B
Go
29 lines
514 B
Go
//go:build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
. "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()
|
|
}
|