update
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)")
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
. "github.com/mmcloughlin/avo/build"
|
||||
. "sources.truenas.cloud/code/avo/build"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
. "github.com/mmcloughlin/avo/build"
|
||||
. "sources.truenas.cloud/code/avo/build"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
"github.com/mmcloughlin/avo/attr"
|
||||
"sources.truenas.cloud/code/avo/attr"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
10
tests/thirdparty/config.go
vendored
10
tests/thirdparty/config.go
vendored
@@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
4
tests/thirdparty/make_workflow.go
vendored
4
tests/thirdparty/make_workflow.go
vendored
@@ -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 (
|
||||
|
||||
4
tests/thirdparty/metadata_test.go
vendored
4
tests/thirdparty/metadata_test.go
vendored
@@ -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")
|
||||
|
||||
2
tests/thirdparty/packages_test.go
vendored
2
tests/thirdparty/packages_test.go
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user