]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test,cmd/compile: remove _ssa file suffix
authorKeith Randall <khr@golang.org>
Thu, 15 Sep 2016 20:29:17 +0000 (13:29 -0700)
committerKeith Randall <khr@golang.org>
Thu, 15 Sep 2016 20:47:01 +0000 (20:47 +0000)
Everything is SSA now.

Update #16357

Change-Id: I436dbe367b863ee81a3695a7d653ba4bfc5b0f6c
Reviewed-on: https://go-review.googlesource.com/29232
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

32 files changed:
src/cmd/compile/internal/gc/ssa_test.go
src/cmd/compile/internal/gc/testdata/addressed.go [moved from src/cmd/compile/internal/gc/testdata/addressed_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/append.go [moved from src/cmd/compile/internal/gc/testdata/append_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/arith.go [moved from src/cmd/compile/internal/gc/testdata/arith_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/arithBoundary.go [moved from src/cmd/compile/internal/gc/testdata/arithBoundary_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/arithConst.go [moved from src/cmd/compile/internal/gc/testdata/arithConst_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/array.go [moved from src/cmd/compile/internal/gc/testdata/array_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/assert.go [moved from src/cmd/compile/internal/gc/testdata/assert_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/break.go [moved from src/cmd/compile/internal/gc/testdata/break_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/chan.go [moved from src/cmd/compile/internal/gc/testdata/chan_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/closure.go [moved from src/cmd/compile/internal/gc/testdata/closure_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/cmp.go [moved from src/cmd/compile/internal/gc/testdata/cmp_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/compound.go [moved from src/cmd/compile/internal/gc/testdata/compound_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/copy.go [moved from src/cmd/compile/internal/gc/testdata/copy_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/ctl.go [moved from src/cmd/compile/internal/gc/testdata/ctl_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/deferNoReturn.go [moved from src/cmd/compile/internal/gc/testdata/deferNoReturn_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/divbyzero.go [moved from src/cmd/compile/internal/gc/testdata/divbyzero_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/fp.go [moved from src/cmd/compile/internal/gc/testdata/fp_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/gen/arithBoundaryGen.go
src/cmd/compile/internal/gc/testdata/gen/arithConstGen.go
src/cmd/compile/internal/gc/testdata/gen/copyGen.go
src/cmd/compile/internal/gc/testdata/gen/zeroGen.go
src/cmd/compile/internal/gc/testdata/loadstore.go [moved from src/cmd/compile/internal/gc/testdata/loadstore_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/map.go [moved from src/cmd/compile/internal/gc/testdata/map_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/phi.go [moved from src/cmd/compile/internal/gc/testdata/phi_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/regalloc.go [moved from src/cmd/compile/internal/gc/testdata/regalloc_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/short.go [moved from src/cmd/compile/internal/gc/testdata/short_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/string.go [moved from src/cmd/compile/internal/gc/testdata/string_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/unsafe.go [moved from src/cmd/compile/internal/gc/testdata/unsafe_ssa.go with 100% similarity]
src/cmd/compile/internal/gc/testdata/zero.go [moved from src/cmd/compile/internal/gc/testdata/zero_ssa.go with 100% similarity]
test/live.go [moved from test/live_ssa.go with 100% similarity]
test/nilptr3.go [moved from test/nilptr3_ssa.go with 100% similarity]

index f45ca864c966bf1c33af6c1842f3073366ec2cb8..b54ada9544ba67071ff9e2191661177d5ff4d19f 100644 (file)
@@ -40,63 +40,63 @@ func doTest(t *testing.T, filename string, kind string) {
 }
 
 // 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.
-func TestBreakContinue(t *testing.T) { runTest(t, "break_ssa.go") }
+func TestBreakContinue(t *testing.T) { runTest(t, "break.go") }
 
 // 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.
 func TestArithmetic(t *testing.T) {
        if runtime.GOARCH == "386" {
                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.
-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.
-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.
-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.
-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") }
 
index be0aad5ff8eded824199feeb080f3327a3b6730e..866431e1aede14ea95b654c8844b7ed7079a480e 100644 (file)
@@ -5,7 +5,7 @@
 // This program generates a test to verify that the standard arithmetic
 // operators properly handle some special cases. The test file should be
 // 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
 
 package main
@@ -207,7 +207,7 @@ func main() {
        }
 
        // write to file
-       err = ioutil.WriteFile("../arithBoundary_ssa.go", src, 0666)
+       err = ioutil.WriteFile("../arithBoundary.go", src, 0666)
        if err != nil {
                log.Fatalf("can't write output: %v\n", err)
        }
index 55590501437b2071dc141e2e0e4c2f7f44a94b12..97434ea34cb09b2cd932a3e9a2c1cafe94b45d98 100644 (file)
@@ -5,7 +5,7 @@
 // This program generates a test to verify that the standard arithmetic
 // operators properly handle const cases. The test file should be
 // 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
 
 package main
@@ -295,7 +295,7 @@ func main() {
        }
 
        // write to file
-       err = ioutil.WriteFile("../arithConst_ssa.go", src, 0666)
+       err = ioutil.WriteFile("../arithConst.go", src, 0666)
        if err != nil {
                log.Fatalf("can't write output: %v\n", err)
        }
index a699fac6c06df3f7eac3ad524f4526d8d5b1b648..2d2240c43584b775e949b46ef19b986195f96be2 100644 (file)
@@ -15,7 +15,7 @@ import (
 // This program generates tests to verify that copying operations
 // 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.
 
 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() {
        }
 
        // write to file
-       err = ioutil.WriteFile("../copy_ssa.go", src, 0666)
+       err = ioutil.WriteFile("../copy.go", src, 0666)
        if err != nil {
                log.Fatalf("can't write output: %v\n", err)
        }
index 90e8029f3f59fe4e949542ba2570d5736aa8ffc3..6482f07fda1f928904029d4b2b0e3d77cc264c93 100644 (file)
@@ -15,7 +15,7 @@ import (
 // This program generates tests to verify that zeroing operations
 // 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.
 
 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() {
        }
 
        // write to file
-       err = ioutil.WriteFile("../zero_ssa.go", src, 0666)
+       err = ioutil.WriteFile("../zero.go", src, 0666)
        if err != nil {
                log.Fatalf("can't write output: %v\n", err)
        }
similarity index 100%
rename from test/live_ssa.go
rename to test/live.go
similarity index 100%
rename from test/nilptr3_ssa.go
rename to test/nilptr3.go