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

@@ -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"
)
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"
)
// The goal of this test is to create a synthetic scenario in which register

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"
)
// The goal is to test for correct handling of 32-bit operands in 64-bit mode,

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"
)
// The goal of this test is to confirm correct liveness analysis of zeroing mode

View File

@@ -2,7 +2,7 @@
package main
import . "github.com/mmcloughlin/avo/build"
import . "sources.truenas.cloud/code/avo/build"
func main() {
TEXT("Split", NOSPLIT, "func(x uint64) (q uint64, l uint32, w uint16, b uint8)")

View File

@@ -6,11 +6,11 @@ import (
"fmt"
"log"
. "github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/buildtags"
"github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/operand"
. "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,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,7 +3,7 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "sources.truenas.cloud/code/avo/build"
)
func main() {

View File

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

View File

@@ -5,9 +5,9 @@ package main
import (
"fmt"
. "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

@@ -4,8 +4,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"
)
// Float32 generates a function which indexes into an array of single-precision

View File

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

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/tests/fixedbugs/issue62")
Package("sources.truenas.cloud/code/avo/tests/fixedbugs/issue62")
Implement("private")
RET()
Generate()

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

@@ -3,7 +3,7 @@
// Regression test for a bug where casting a physical register would give the
// error "non physical register found".
//
// See: https://github.com/mmcloughlin/avo/issues/65#issuecomment-576850145
// See: sources.truenas.cloud/code/avo/issues/65#issuecomment-576850145
package issue65
//go:generate go run asm.go -out issue65.s -stubs stub.go

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,8 +3,8 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "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,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

@@ -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

@@ -9,9 +9,9 @@ import (
"go/types"
"math/rand"
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/gotypes"
. "github.com/mmcloughlin/avo/reg"
. "sources.truenas.cloud/code/avo/build"
. "sources.truenas.cloud/code/avo/gotypes"
. "sources.truenas.cloud/code/avo/reg"
)
var (

View File

@@ -13,7 +13,7 @@ import (
"path/filepath"
"runtime"
"github.com/mmcloughlin/avo/attr"
"sources.truenas.cloud/code/avo/attr"
)
var (

View File

@@ -26,12 +26,12 @@ func (r GithubRepository) String() string {
// URL returns the Github repository URL.
func (r GithubRepository) URL() string {
return fmt.Sprintf("https://github.com/%s", r)
return fmt.Sprintf("sources.truenas.cloud/code/%s", r)
}
// CloneURL returns the git clone URL.
func (r GithubRepository) CloneURL() string {
return fmt.Sprintf("https://github.com/%s.git", r)
return fmt.Sprintf("sources.truenas.cloud/code/%s.git", r)
}
// Metadata about the repository.
@@ -108,7 +108,7 @@ func (p *Project) Skip() bool {
// Reason returns the reason why the test is skipped.
func (p *Project) Reason() string {
return fmt.Sprintf("https://github.com/mmcloughlin/avo/issues/%d", p.KnownIssue)
return fmt.Sprintf("sources.truenas.cloud/code/avo/issues/%d", p.KnownIssue)
}
// Step represents a set of commands to run as part of the testing plan for a
@@ -259,8 +259,8 @@ func (p *Package) Steps(c *Context) []*Step {
Name: "Avo Module Replacement",
WorkingDirectory: moddir,
Commands: []string{
"go mod edit -modfile=" + modfile + " -require=github.com/mmcloughlin/avo@" + invalid,
"go mod edit -modfile=" + modfile + " -replace=github.com/mmcloughlin/avo=" + c.AvoDirectory,
"go mod edit -modfile=" + modfile + " -require=sources.truenas.cloud/code/avo@" + invalid,
"go mod edit -modfile=" + modfile + " -replace=sources.truenas.cloud/code/avo=" + c.AvoDirectory,
"go mod tidy -modfile=" + modfile,
},
})

View File

@@ -10,8 +10,8 @@ import (
"path/filepath"
"runtime"
"github.com/mmcloughlin/avo/internal/prnt"
"github.com/mmcloughlin/avo/tests/thirdparty"
"sources.truenas.cloud/code/avo/internal/prnt"
"sources.truenas.cloud/code/avo/tests/thirdparty"
)
var (

View File

@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/mmcloughlin/avo/internal/github"
"github.com/mmcloughlin/avo/internal/test"
"sources.truenas.cloud/code/avo/internal/github"
"sources.truenas.cloud/code/avo/internal/test"
)
var update = flag.Bool("update", false, "update project metadata")

View File

@@ -8,7 +8,7 @@ import (
"runtime"
"testing"
"github.com/mmcloughlin/avo/internal/test"
"sources.truenas.cloud/code/avo/internal/test"
)
//go:generate go run make_workflow.go -suite suite.json -output ../../.github/workflows/packages.yml