From: Josh Bleecher Snyder Date: Tue, 5 Mar 2019 00:48:28 +0000 (-0800) Subject: cmd/compile: add pure Go math/big functions to TestIntendedInlining X-Git-Tag: go1.13beta1~1115 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=243c8eb8c290ebbf2e2811da2dd7538200dde6b3;p=gostls13.git cmd/compile: add pure Go math/big functions to TestIntendedInlining Change-Id: Id29a9e48a09965e457f923a0ff023722b38b27ef Reviewed-on: https://go-review.googlesource.com/c/go/+/165157 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/compile/internal/gc/inl_test.go b/src/cmd/compile/internal/gc/inl_test.go index 0dfd252372..7868c14aa6 100644 --- a/src/cmd/compile/internal/gc/inl_test.go +++ b/src/cmd/compile/internal/gc/inl_test.go @@ -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