Skip to content

Commit 56eaf57

Browse files
committed
test/codegen: match 387 ops too for GOARCH=386
Change-Id: I99407e27e340689009af798989b33cef7cb92070 Reviewed-on: https://go-review.googlesource.com/103376 Run-TryBot: Alberto Donizetti <[email protected]> Reviewed-by: Josh Bleecher Snyder <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent aacf7a1 commit 56eaf57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/codegen/floats.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ package codegen
1515
// --------------------- //
1616

1717
func Mul2(f float64) float64 {
18-
// 386:"ADDSD",-"MULSD"
18+
// 386:"ADDSD|FADDDP",-"MULSD",-"FMULDP"
1919
// amd64:"ADDSD",-"MULSD"
2020
// arm:"ADDD",-"MULD"
2121
// arm64:"FADDD",-"FMULD"
2222
return f * 2.0
2323
}
2424

2525
func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
26-
// 386:"MULSD",-"DIVSD"
26+
// 386:"MULSD|FMULDP",-"DIVSD",-"FDIVDP"
2727
// amd64:"MULSD",-"DIVSD"
2828
// arm:"MULD",-"DIVD"
2929
// arm64:"FMULD",-"FDIVD"
3030
x := f1 / 16.0
3131

32-
// 386:"MULSD",-"DIVSD"
32+
// 386:"MULSD|FMULDP",-"DIVSD",-"FDIVDP"
3333
// amd64:"MULSD",-"DIVSD"
3434
// arm:"MULD",-"DIVD"
3535
// arm64:"FMULD",-"FDIVD"
3636
y := f2 / 0.125
3737

38-
// 386:"ADDSD",-"DIVSD",-"MULSD"
38+
// 386:"ADDSD|FADDDP",-"DIVSD",-"MULSD",-"FDIVDP",-"FMULDP"
3939
// amd64:"ADDSD",-"DIVSD",-"MULSD"
4040
// arm:"ADDD",-"MULD",-"DIVD"
4141
// arm64:"FADDD",-"FMULD",-"FDIVD"

0 commit comments

Comments
 (0)