This commit is contained in:
2026-03-06 20:14:02 +00:00
parent 39eaafea25
commit 33208a2356
146 changed files with 673 additions and 1986 deletions

View File

@@ -2,7 +2,7 @@
package main
import . "github.com/mmcloughlin/avo/build"
import . "sources.truenas.cloud/code/avo/build"
func main() {
TEXT("Add", NOSPLIT, "func(x, y uint64) uint64")

View File

@@ -2,10 +2,10 @@
package main
import . "github.com/mmcloughlin/avo/build"
import . "sources.truenas.cloud/code/avo/build"
func main() {
Package("github.com/mmcloughlin/avo/examples/args")
Package("sources.truenas.cloud/code/avo/examples/args")
TEXT("Second", NOSPLIT, "func(x, y int32) int32")
y := Load(Param("y"), GP32())

View File

@@ -2,7 +2,7 @@
package main
import . "github.com/mmcloughlin/avo/build"
import . "sources.truenas.cloud/code/avo/build"
func main() {
TEXT("Real", NOSPLIT, "func(z complex128) float64")

View File

@@ -5,8 +5,8 @@ package main
import (
"math"
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
)
func main() {

View File

@@ -3,9 +3,9 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
. "sources.truenas.cloud/code/avo/reg"
)
var unroll = 6

View File

@@ -2,10 +2,10 @@
package main
import . "github.com/mmcloughlin/avo/build"
import . "sources.truenas.cloud/code/avo/build"
func main() {
Package("github.com/mmcloughlin/avo/examples/ext")
Package("sources.truenas.cloud/code/avo/examples/ext")
Implement("StructFieldB")
b := Load(Param("e").Field("B"), GP8())
Store(b, ReturnIndex(0))

View File

@@ -4,7 +4,7 @@ import (
"testing"
"testing/quick"
"github.com/mmcloughlin/avo/examples/ext/ext"
"sources.truenas.cloud/code/avo/examples/ext/ext"
)
//go:generate go run asm.go -out ext.s

View File

@@ -1,7 +1,7 @@
// Package ext demonstrates how to interact with external types.
package ext
import "github.com/mmcloughlin/avo/examples/ext/ext"
import "sources.truenas.cloud/code/avo/examples/ext/ext"
// StructFieldB returns field B.
func StructFieldB(e ext.Struct) byte

View File

@@ -3,9 +3,9 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
. "sources.truenas.cloud/code/avo/reg"
)
const (

View File

@@ -3,8 +3,8 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
)
func main() {

View File

@@ -5,9 +5,9 @@ package main
import (
"math"
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
. "sources.truenas.cloud/code/avo/reg"
)
func main() {

View File

@@ -3,8 +3,8 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
)
func main() {

View File

@@ -3,12 +3,12 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
)
func main() {
Package("github.com/mmcloughlin/avo/examples/returns")
Package("sources.truenas.cloud/code/avo/examples/returns")
TEXT("Interval", NOSPLIT, "func(start, size uint64) (uint64, uint64)")
Doc(

View File

@@ -3,9 +3,9 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
. "sources.truenas.cloud/code/avo/reg"
)
func main() {

View File

@@ -5,9 +5,9 @@ package main
import (
"strconv"
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
. "sources.truenas.cloud/code/avo/reg"
)
const (
@@ -37,7 +37,7 @@ func makelabels(name string, n int) []string {
}
func main() {
Package("github.com/mmcloughlin/avo/examples/stadtx")
Package("sources.truenas.cloud/code/avo/examples/stadtx")
TEXT("Hash", NOSPLIT, "func(state *State, key []byte) uint64")
Doc("Hash computes the Stadtx hash.")

View File

@@ -3,8 +3,8 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/operand"
)
func main() {