test/codegen: match 387 ops too for GOARCH=386

Change-Id: I99407e27e340689009af798989b33cef7cb92070
Reviewed-on: https://go-review.googlesource.com/103376
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Alberto Donizetti 2018-03-29 21:46:28 +02:00
parent aacf7a1846
commit 56eaf574a1

View file

@ -15,7 +15,7 @@ package codegen
// --------------------- //
func Mul2(f float64) float64 {
// 386:"ADDSD",-"MULSD"
// 386:"ADDSD|FADDDP",-"MULSD",-"FMULDP"
// amd64:"ADDSD",-"MULSD"
// arm:"ADDD",-"MULD"
// arm64:"FADDD",-"FMULD"
@ -23,19 +23,19 @@ func Mul2(f float64) float64 {
}
func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
// 386:"MULSD",-"DIVSD"
// 386:"MULSD|FMULDP",-"DIVSD",-"FDIVDP"
// amd64:"MULSD",-"DIVSD"
// arm:"MULD",-"DIVD"
// arm64:"FMULD",-"FDIVD"
x := f1 / 16.0
// 386:"MULSD",-"DIVSD"
// 386:"MULSD|FMULDP",-"DIVSD",-"FDIVDP"
// amd64:"MULSD",-"DIVSD"
// arm:"MULD",-"DIVD"
// arm64:"FMULD",-"FDIVD"
y := f2 / 0.125
// 386:"ADDSD",-"DIVSD",-"MULSD"
// 386:"ADDSD|FADDDP",-"DIVSD",-"MULSD",-"FDIVDP",-"FMULDP"
// amd64:"ADDSD",-"DIVSD",-"MULSD"
// arm:"ADDD",-"MULD",-"DIVD"
// arm64:"FADDD",-"FMULD",-"FDIVD"