Commit b265d517 authored by Keith Randall's avatar Keith Randall

test,cmd/compile: remove _ssa file suffix

Everything is SSA now.

Update #16357

Change-Id: I436dbe367b863ee81a3695a7d653ba4bfc5b0f6c
Reviewed-on: https://go-review.googlesource.com/29232Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent f13701bf
...@@ -40,63 +40,63 @@ func doTest(t *testing.T, filename string, kind string) { ...@@ -40,63 +40,63 @@ func doTest(t *testing.T, filename string, kind string) {
} }
// TestShortCircuit tests OANDAND and OOROR expressions and short circuiting. // TestShortCircuit tests OANDAND and OOROR expressions and short circuiting.
func TestShortCircuit(t *testing.T) { runTest(t, "short_ssa.go") } func TestShortCircuit(t *testing.T) { runTest(t, "short.go") }
// TestBreakContinue tests that continue and break statements do what they say. // TestBreakContinue tests that continue and break statements do what they say.
func TestBreakContinue(t *testing.T) { runTest(t, "break_ssa.go") } func TestBreakContinue(t *testing.T) { runTest(t, "break.go") }
// TestTypeAssertion tests type assertions. // TestTypeAssertion tests type assertions.
func TestTypeAssertion(t *testing.T) { runTest(t, "assert_ssa.go") } func TestTypeAssertion(t *testing.T) { runTest(t, "assert.go") }
// TestArithmetic tests that both backends have the same result for arithmetic expressions. // TestArithmetic tests that both backends have the same result for arithmetic expressions.
func TestArithmetic(t *testing.T) { func TestArithmetic(t *testing.T) {
if runtime.GOARCH == "386" { if runtime.GOARCH == "386" {
t.Skip("legacy 386 compiler can't handle this test") t.Skip("legacy 386 compiler can't handle this test")
} }
runTest(t, "arith_ssa.go") runTest(t, "arith.go")
} }
// TestFP tests that both backends have the same result for floating point expressions. // TestFP tests that both backends have the same result for floating point expressions.
func TestFP(t *testing.T) { runTest(t, "fp_ssa.go") } func TestFP(t *testing.T) { runTest(t, "fp.go") }
// TestArithmeticBoundary tests boundary results for arithmetic operations. // TestArithmeticBoundary tests boundary results for arithmetic operations.
func TestArithmeticBoundary(t *testing.T) { runTest(t, "arithBoundary_ssa.go") } func TestArithmeticBoundary(t *testing.T) { runTest(t, "arithBoundary.go") }
// TestArithmeticConst tests results for arithmetic operations against constants. // TestArithmeticConst tests results for arithmetic operations against constants.
func TestArithmeticConst(t *testing.T) { runTest(t, "arithConst_ssa.go") } func TestArithmeticConst(t *testing.T) { runTest(t, "arithConst.go") }
func TestChan(t *testing.T) { runTest(t, "chan_ssa.go") } func TestChan(t *testing.T) { runTest(t, "chan.go") }
func TestCompound(t *testing.T) { runTest(t, "compound_ssa.go") } func TestCompound(t *testing.T) { runTest(t, "compound.go") }
func TestCtl(t *testing.T) { runTest(t, "ctl_ssa.go") } func TestCtl(t *testing.T) { runTest(t, "ctl.go") }
func TestLoadStore(t *testing.T) { runTest(t, "loadstore_ssa.go") } func TestLoadStore(t *testing.T) { runTest(t, "loadstore.go") }
func TestMap(t *testing.T) { runTest(t, "map_ssa.go") } func TestMap(t *testing.T) { runTest(t, "map.go") }
func TestRegalloc(t *testing.T) { runTest(t, "regalloc_ssa.go") } func TestRegalloc(t *testing.T) { runTest(t, "regalloc.go") }
func TestString(t *testing.T) { runTest(t, "string_ssa.go") } func TestString(t *testing.T) { runTest(t, "string.go") }
func TestDeferNoReturn(t *testing.T) { buildTest(t, "deferNoReturn_ssa.go") } func TestDeferNoReturn(t *testing.T) { buildTest(t, "deferNoReturn.go") }
// TestClosure tests closure related behavior. // TestClosure tests closure related behavior.
func TestClosure(t *testing.T) { runTest(t, "closure_ssa.go") } func TestClosure(t *testing.T) { runTest(t, "closure.go") }
func TestArray(t *testing.T) { runTest(t, "array_ssa.go") } func TestArray(t *testing.T) { runTest(t, "array.go") }
func TestAppend(t *testing.T) { runTest(t, "append_ssa.go") } func TestAppend(t *testing.T) { runTest(t, "append.go") }
func TestZero(t *testing.T) { runTest(t, "zero_ssa.go") } func TestZero(t *testing.T) { runTest(t, "zero.go") }
func TestAddressed(t *testing.T) { runTest(t, "addressed_ssa.go") } func TestAddressed(t *testing.T) { runTest(t, "addressed.go") }
func TestCopy(t *testing.T) { runTest(t, "copy_ssa.go") } func TestCopy(t *testing.T) { runTest(t, "copy.go") }
func TestUnsafe(t *testing.T) { runTest(t, "unsafe_ssa.go") } func TestUnsafe(t *testing.T) { runTest(t, "unsafe.go") }
func TestPhi(t *testing.T) { runTest(t, "phi_ssa.go") } func TestPhi(t *testing.T) { runTest(t, "phi.go") }
func TestSlice(t *testing.T) { runTest(t, "slice.go") } func TestSlice(t *testing.T) { runTest(t, "slice.go") }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// This program generates a test to verify that the standard arithmetic // This program generates a test to verify that the standard arithmetic
// operators properly handle some special cases. The test file should be // operators properly handle some special cases. The test file should be
// generated with a known working version of go. // generated with a known working version of go.
// launch with `go run arithBoundaryGen.go` a file called arithBoundary_ssa.go // launch with `go run arithBoundaryGen.go` a file called arithBoundary.go
// will be written into the parent directory containing the tests // will be written into the parent directory containing the tests
package main package main
...@@ -207,7 +207,7 @@ func main() { ...@@ -207,7 +207,7 @@ func main() {
} }
// write to file // write to file
err = ioutil.WriteFile("../arithBoundary_ssa.go", src, 0666) err = ioutil.WriteFile("../arithBoundary.go", src, 0666)
if err != nil { if err != nil {
log.Fatalf("can't write output: %v\n", err) log.Fatalf("can't write output: %v\n", err)
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// This program generates a test to verify that the standard arithmetic // This program generates a test to verify that the standard arithmetic
// operators properly handle const cases. The test file should be // operators properly handle const cases. The test file should be
// generated with a known working version of go. // generated with a known working version of go.
// launch with `go run arithConstGen.go` a file called arithConst_ssa.go // launch with `go run arithConstGen.go` a file called arithConst.go
// will be written into the parent directory containing the tests // will be written into the parent directory containing the tests
package main package main
...@@ -295,7 +295,7 @@ func main() { ...@@ -295,7 +295,7 @@ func main() {
} }
// write to file // write to file
err = ioutil.WriteFile("../arithConst_ssa.go", src, 0666) err = ioutil.WriteFile("../arithConst.go", src, 0666)
if err != nil { if err != nil {
log.Fatalf("can't write output: %v\n", err) log.Fatalf("can't write output: %v\n", err)
} }
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
// This program generates tests to verify that copying operations // This program generates tests to verify that copying operations
// copy the data they are supposed to and clobber no adjacent values. // copy the data they are supposed to and clobber no adjacent values.
// run as `go run copyGen.go`. A file called copy_ssa.go // run as `go run copyGen.go`. A file called copy.go
// will be written into the parent directory containing the tests. // will be written into the parent directory containing the tests.
var sizes = [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 23, 24, 25, 31, 32, 33, 63, 64, 65, 1023, 1024, 1025, 1024 + 7, 1024 + 8, 1024 + 9, 1024 + 15, 1024 + 16, 1024 + 17} var sizes = [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 23, 24, 25, 31, 32, 33, 63, 64, 65, 1023, 1024, 1025, 1024 + 7, 1024 + 8, 1024 + 9, 1024 + 15, 1024 + 16, 1024 + 17}
...@@ -86,7 +86,7 @@ func main() { ...@@ -86,7 +86,7 @@ func main() {
} }
// write to file // write to file
err = ioutil.WriteFile("../copy_ssa.go", src, 0666) err = ioutil.WriteFile("../copy.go", src, 0666)
if err != nil { if err != nil {
log.Fatalf("can't write output: %v\n", err) log.Fatalf("can't write output: %v\n", err)
} }
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
// This program generates tests to verify that zeroing operations // This program generates tests to verify that zeroing operations
// zero the data they are supposed to and clobber no adjacent values. // zero the data they are supposed to and clobber no adjacent values.
// run as `go run zeroGen.go`. A file called zero_ssa.go // run as `go run zeroGen.go`. A file called zero.go
// will be written into the parent directory containing the tests. // will be written into the parent directory containing the tests.
var sizes = [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 23, 24, 25, 31, 32, 33, 63, 64, 65, 1023, 1024, 1025} var sizes = [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 23, 24, 25, 31, 32, 33, 63, 64, 65, 1023, 1024, 1025}
...@@ -81,7 +81,7 @@ func main() { ...@@ -81,7 +81,7 @@ func main() {
} }
// write to file // write to file
err = ioutil.WriteFile("../zero_ssa.go", src, 0666) err = ioutil.WriteFile("../zero.go", src, 0666)
if err != nil { if err != nil {
log.Fatalf("can't write output: %v\n", err) log.Fatalf("can't write output: %v\n", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment