mirror of https://github.com/golang/go.git
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:
parent
aacf7a1846
commit
56eaf574a1
|
|
@ -15,7 +15,7 @@ package codegen
|
||||||
// --------------------- //
|
// --------------------- //
|
||||||
|
|
||||||
func Mul2(f float64) float64 {
|
func Mul2(f float64) float64 {
|
||||||
// 386:"ADDSD",-"MULSD"
|
// 386:"ADDSD|FADDDP",-"MULSD",-"FMULDP"
|
||||||
// amd64:"ADDSD",-"MULSD"
|
// amd64:"ADDSD",-"MULSD"
|
||||||
// arm:"ADDD",-"MULD"
|
// arm:"ADDD",-"MULD"
|
||||||
// arm64:"FADDD",-"FMULD"
|
// arm64:"FADDD",-"FMULD"
|
||||||
|
|
@ -23,19 +23,19 @@ func Mul2(f float64) float64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
|
func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
|
||||||
// 386:"MULSD",-"DIVSD"
|
// 386:"MULSD|FMULDP",-"DIVSD",-"FDIVDP"
|
||||||
// amd64:"MULSD",-"DIVSD"
|
// amd64:"MULSD",-"DIVSD"
|
||||||
// arm:"MULD",-"DIVD"
|
// arm:"MULD",-"DIVD"
|
||||||
// arm64:"FMULD",-"FDIVD"
|
// arm64:"FMULD",-"FDIVD"
|
||||||
x := f1 / 16.0
|
x := f1 / 16.0
|
||||||
|
|
||||||
// 386:"MULSD",-"DIVSD"
|
// 386:"MULSD|FMULDP",-"DIVSD",-"FDIVDP"
|
||||||
// amd64:"MULSD",-"DIVSD"
|
// amd64:"MULSD",-"DIVSD"
|
||||||
// arm:"MULD",-"DIVD"
|
// arm:"MULD",-"DIVD"
|
||||||
// arm64:"FMULD",-"FDIVD"
|
// arm64:"FMULD",-"FDIVD"
|
||||||
y := f2 / 0.125
|
y := f2 / 0.125
|
||||||
|
|
||||||
// 386:"ADDSD",-"DIVSD",-"MULSD"
|
// 386:"ADDSD|FADDDP",-"DIVSD",-"MULSD",-"FDIVDP",-"FMULDP"
|
||||||
// amd64:"ADDSD",-"DIVSD",-"MULSD"
|
// amd64:"ADDSD",-"DIVSD",-"MULSD"
|
||||||
// arm:"ADDD",-"MULD",-"DIVD"
|
// arm:"ADDD",-"MULD",-"DIVD"
|
||||||
// arm64:"FADDD",-"FMULD",-"FDIVD"
|
// arm64:"FADDD",-"FMULD",-"FDIVD"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue