]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: add pure Go math/big functions to TestIntendedInlining
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 5 Mar 2019 00:48:28 +0000 (16:48 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 9 Mar 2019 21:26:04 +0000 (21:26 +0000)
Change-Id: Id29a9e48a09965e457f923a0ff023722b38b27ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/165157
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/inl_test.go

index 0dfd252372f86020824bef2498cfc2770d4269a7..7868c14aa60d70de39ec484e515906d6e17fea98 100644 (file)
@@ -144,6 +144,9 @@ func TestIntendedInlining(t *testing.T) {
                },
                "math/big": {
                        "bigEndianWord",
+                       // The following functions require the math_big_pure_go build tag.
+                       "addVW",
+                       "subVW",
                },
        }
 
@@ -202,7 +205,7 @@ func TestIntendedInlining(t *testing.T) {
                }
        }
 
-       args := append([]string{"build", "-a", "-gcflags=all=-m -m"}, pkgs...)
+       args := append([]string{"build", "-a", "-gcflags=all=-m -m", "-tags=math_big_pure_go"}, pkgs...)
        cmd := testenv.CleanCmdEnv(exec.Command(testenv.GoToolPath(t), args...))
        pr, pw := io.Pipe()
        cmd.Stdout = pw