From: Ben Shi Date: Tue, 16 Oct 2018 04:02:03 +0000 (+0000) Subject: test/codegen: fix confusing test cases X-Git-Tag: go1.12beta1~761 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3785be3093ef8a8ea3c71ff9608451de1ad85db8;p=gostls13.git test/codegen: fix confusing test cases ARMv7's MULAF/MULSF/MULAD/MULSD are not fused, this CL fixes the confusing test cases. Change-Id: I35022e207e2f0d24a23a7f6f188e41ba8eee9886 Reviewed-on: https://go-review.googlesource.com/c/142439 Run-TryBot: Ben Shi TryBot-Result: Gobot Gobot Reviewed-by: Akhil Indurti Reviewed-by: Giovanni Bajo --- diff --git a/test/codegen/floats.go b/test/codegen/floats.go index 847959c42e..c20f6984bf 100644 --- a/test/codegen/floats.go +++ b/test/codegen/floats.go @@ -72,7 +72,6 @@ func indexStore(b0 []float64, b1 float64, idx int) { func FusedAdd32(x, y, z float32) float32 { // s390x:"FMADDS\t" // ppc64le:"FMADDS\t" - // arm/7:"MULAF" // arm64:"FMADDS" return x*y + z } @@ -84,7 +83,6 @@ func FusedSub32_a(x, y, z float32) float32 { } func FusedSub32_b(x, y, z float32) float32 { - // arm/7:"MULSF" // arm64:"FMSUBS" return z - x*y } @@ -92,7 +90,6 @@ func FusedSub32_b(x, y, z float32) float32 { func FusedAdd64(x, y, z float64) float64 { // s390x:"FMADD\t" // ppc64le:"FMADD\t" - // arm/7:"MULAD" // arm64:"FMADDD" return x*y + z } @@ -104,7 +101,6 @@ func FusedSub64_a(x, y, z float64) float64 { } func FusedSub64_b(x, y, z float64) float64 { - // arm/7:"MULSD" // arm64:"FMSUBD" return z - x*y }