mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
test: migrate plan9 tests to codegen
And remove it from asmtest. Next CL will remove the whole asmtest infrastructure. Change-Id: I5851bf7c617456d62a3c6cffacf70252df7b056b Reviewed-on: https://go-review.googlesource.com/107335 Run-TryBot: Giovanni Bajo <rasky@develer.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
b47806d1b5
commit
01aa1d7dbe
2 changed files with 23 additions and 33 deletions
|
|
@ -220,39 +220,7 @@ func (ats *asmTests) runGo(t *testing.T, args ...string) string {
|
|||
return stdout.String()
|
||||
}
|
||||
|
||||
var allAsmTests = []*asmTests{
|
||||
{
|
||||
arch: "amd64",
|
||||
os: "plan9",
|
||||
tests: plan9AMD64Tests,
|
||||
},
|
||||
}
|
||||
|
||||
var plan9AMD64Tests = []*asmTest{
|
||||
// We should make sure that the compiler doesn't generate floating point
|
||||
// instructions for non-float operations on Plan 9, because floating point
|
||||
// operations are not allowed in the note handler.
|
||||
// Array zeroing.
|
||||
{
|
||||
fn: `
|
||||
func $() [16]byte {
|
||||
var a [16]byte
|
||||
return a
|
||||
}
|
||||
`,
|
||||
pos: []string{"\tMOVQ\t\\$0, \"\""},
|
||||
},
|
||||
// Array copy.
|
||||
{
|
||||
fn: `
|
||||
func $(a [16]byte) (b [16]byte) {
|
||||
b = a
|
||||
return
|
||||
}
|
||||
`,
|
||||
pos: []string{"\tMOVQ\t\"\"\\.a\\+[0-9]+\\(SP\\), (AX|CX)", "\tMOVQ\t(AX|CX), \"\"\\.b\\+[0-9]+\\(SP\\)"},
|
||||
},
|
||||
}
|
||||
var allAsmTests = []*asmTests{}
|
||||
|
||||
// TestLineNumber checks to make sure the generated assembly has line numbers
|
||||
// see issue #16214
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue