update
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"math"
|
||||
"sort"
|
||||
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
"sources.truenas.cloud/code/avo/reg"
|
||||
)
|
||||
|
||||
// edge is an edge of the interference graph, indicating that registers X and Y
|
||||
|
||||
@@ -3,7 +3,7 @@ package pass
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
"sources.truenas.cloud/code/avo/reg"
|
||||
)
|
||||
|
||||
func TestAllocatorSimple(t *testing.T) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
)
|
||||
|
||||
// LabelTarget populates the LabelTarget of the given function. This maps from
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
)
|
||||
|
||||
func TestLabelTarget(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pass
|
||||
|
||||
import (
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
)
|
||||
|
||||
// PruneJumpToFollowingLabel removes jump instructions that target an
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/build"
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"github.com/mmcloughlin/avo/pass"
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
"sources.truenas.cloud/code/avo/build"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/pass"
|
||||
"sources.truenas.cloud/code/avo/reg"
|
||||
)
|
||||
|
||||
func TestPruneSelfMoves(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package pass
|
||||
import (
|
||||
"sort"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
)
|
||||
|
||||
// RequiredISAExtensions determines ISA extensions required for the given
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
)
|
||||
|
||||
func TestRequiredISAExtensions(t *testing.T) {
|
||||
|
||||
@@ -4,8 +4,8 @@ package pass
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/printer"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/printer"
|
||||
)
|
||||
|
||||
// Compile pass compiles an avo file. Upon successful completion the avo file
|
||||
|
||||
@@ -3,10 +3,10 @@ package pass
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/mmcloughlin/avo/gotypes"
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
"sources.truenas.cloud/code/avo/gotypes"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/reg"
|
||||
)
|
||||
|
||||
// ZeroExtend32BitOutputs applies the rule that "32-bit operands generate a
|
||||
|
||||
@@ -3,12 +3,12 @@ package pass_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/attr"
|
||||
"github.com/mmcloughlin/avo/build"
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"github.com/mmcloughlin/avo/pass"
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
"sources.truenas.cloud/code/avo/attr"
|
||||
"sources.truenas.cloud/code/avo/build"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/pass"
|
||||
"sources.truenas.cloud/code/avo/reg"
|
||||
)
|
||||
|
||||
func TestZeroExtend32BitOutputs(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pass
|
||||
|
||||
import (
|
||||
"github.com/mmcloughlin/avo/attr"
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/attr"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
)
|
||||
|
||||
// IncludeTextFlagHeader includes textflag.h if necessary.
|
||||
|
||||
@@ -3,10 +3,10 @@ package pass_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/build"
|
||||
"github.com/mmcloughlin/avo/internal/test"
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/pass"
|
||||
"sources.truenas.cloud/code/avo/build"
|
||||
"sources.truenas.cloud/code/avo/internal/test"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/pass"
|
||||
)
|
||||
|
||||
// BuildFunction is a helper to compile a build context containing a single
|
||||
|
||||
@@ -3,8 +3,8 @@ package pass
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
)
|
||||
|
||||
// Verify pass validates an avo file.
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/ir"
|
||||
"github.com/mmcloughlin/avo/operand"
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
"sources.truenas.cloud/code/avo/ir"
|
||||
"sources.truenas.cloud/code/avo/operand"
|
||||
"sources.truenas.cloud/code/avo/reg"
|
||||
)
|
||||
|
||||
func TestVerifyMemOperands(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user