From d5377c2026b18e1307c6fd243ece98afc6330b71 Mon Sep 17 00:00:00 2001 From: fanzha02 Date: Wed, 12 Sep 2018 01:43:09 +0000 Subject: [PATCH] test: fix the wrong test of math.Copysign(c, -1) for arm64 The CL 132915 added the wrong codegen test for math.Copysign(c, -1), it should test that AND is not emitted. This CL fixes this error. Change-Id: Ida1d3d54ebfc7f238abccbc1f70f914e1b5bfd91 Reviewed-on: https://go-review.googlesource.com/134815 Reviewed-by: Giovanni Bajo Reviewed-by: Cherry Zhang Run-TryBot: Giovanni Bajo TryBot-Result: Gobot Gobot --- test/codegen/math.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/codegen/math.go b/test/codegen/math.go index 99335d2efc7..3d5f0917ef7 100644 --- a/test/codegen/math.go +++ b/test/codegen/math.go @@ -74,7 +74,7 @@ func copysign(a, b, c float64) { // amd64:"BTSQ\t[$]63" // s390x:"LNDFR\t",-"MOVD\t" (no integer load/store) // ppc64le:"FCPSGN" - // arm64:"ORR\t[$]-9223372036854775808" + // arm64:"ORR", -"AND" sink64[1] = math.Copysign(c, -1) // Like math.Copysign(c, -1), but with integer operations. Useful