]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix assembly test
authorKeith Randall <khr@golang.org>
Sun, 3 Sep 2017 15:52:34 +0000 (08:52 -0700)
committerKeith Randall <khr@golang.org>
Sun, 3 Sep 2017 16:24:24 +0000 (16:24 +0000)
Bad merge, missed changing to keyed literal structs.

Bug introduced in CL 56252

Change-Id: I55cccff4990bd25e6387f6c90919ee5866900d7f
Reviewed-on: https://go-review.googlesource.com/61290
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/asm_test.go

index 0445caba66973241a6fc2f2d52073273e4bd89bd..ff048173b29229d7cef7a66a5aa59f8d04505a89 100644 (file)
@@ -832,18 +832,18 @@ var linuxAMD64Tests = []*asmTest{
                pos: []string{"\tADDQ\t[$]19", "\tIMULQ"}, // (a+19)*n
        },
        {
-               `
+               fn: `
                func mul4(n int) int {
                        return 23*n - 9*n
                }`,
-               []string{"\tIMULQ\t[$]14"}, // 14*n
+               pos: []string{"\tIMULQ\t[$]14"}, // 14*n
        },
        {
-               `
+               fn: `
                func mul5(a, n int) int {
                        return a*n - 19*n
                }`,
-               []string{"\tADDQ\t[$]-19", "\tIMULQ"}, // (a-19)*n
+               pos: []string{"\tADDQ\t[$]-19", "\tIMULQ"}, // (a-19)*n
        },
 
        // see issue 19595.
@@ -1165,18 +1165,18 @@ var linux386Tests = []*asmTest{
                pos: []string{"TEXT\t.*, [$]0-4"},
        },
        {
-               `
+               fn: `
                func mul3(n int) int {
                        return 23*n - 9*n
                }`,
-               []string{"\tIMULL\t[$]14"}, // 14*n
+               pos: []string{"\tIMULL\t[$]14"}, // 14*n
        },
        {
-               `
+               fn: `
                func mul4(a, n int) int {
                        return n*a - a*19
                }`,
-               []string{"\tADDL\t[$]-19", "\tIMULL"}, // (n-19)*a
+               pos: []string{"\tADDL\t[$]-19", "\tIMULL"}, // (n-19)*a
        },
 }