]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test/codegen: enable Mul2 DivPow2 test for riscv64
authorMeng Zhuo <mzh@golangcn.org>
Sun, 25 Jun 2023 03:20:35 +0000 (11:20 +0800)
committerKeith Randall <khr@golang.org>
Tue, 4 Jul 2023 13:33:45 +0000 (13:33 +0000)
Change-Id: Ice0bb7a665599b334e927a1b00d1a5b400c15e3d
Reviewed-on: https://go-review.googlesource.com/c/go/+/506035
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>

test/codegen/floats.go

index 81471082d40eff26911b0021c930cdb7ef251348..9cb62e031a73f7db67e436e40744c8e47e4f478b 100644 (file)
@@ -20,6 +20,7 @@ func Mul2(f float64) float64 {
        // arm/7:"ADDD",-"MULD"
        // arm64:"FADDD",-"FMULD"
        // ppc64x:"FADD",-"FMUL"
+       // riscv64:"FADDD",-"FMULD"
        return f * 2.0
 }
 
@@ -29,6 +30,7 @@ func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
        // arm/7:"MULD",-"DIVD"
        // arm64:"FMULD",-"FDIVD"
        // ppc64x:"FMUL",-"FDIV"
+       // riscv64:"FMULD",-"FDIVD"
        x := f1 / 16.0
 
        // 386/sse2:"MULSD",-"DIVSD"
@@ -36,6 +38,7 @@ func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
        // arm/7:"MULD",-"DIVD"
        // arm64:"FMULD",-"FDIVD"
        // ppc64x:"FMUL",-"FDIVD"
+       // riscv64:"FMULD",-"FDIVD"
        y := f2 / 0.125
 
        // 386/sse2:"ADDSD",-"DIVSD",-"MULSD"
@@ -43,6 +46,7 @@ func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
        // arm/7:"ADDD",-"MULD",-"DIVD"
        // arm64:"FADDD",-"FMULD",-"FDIVD"
        // ppc64x:"FADD",-"FMUL",-"FDIV"
+       // riscv64:"FADDD",-"FMULD",-"FDIVD"
        z := f3 / 0.5
 
        return x, y, z