aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/floats.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/codegen/floats.go b/test/codegen/floats.go
index bf9e70d43e..3f27e54751 100644
--- a/test/codegen/floats.go
+++ b/test/codegen/floats.go
@@ -283,15 +283,22 @@ func Float64ConstantStore(p *float64) {
func WideCeilNarrow(x float32) float32 {
// amd64/v3:"ROUNDSS"
// arm64:"FRINTPS"
+ // wasm:"F32Ceil"
return float32(math.Ceil(float64(x)))
}
func WideTruncNarrow(x float32) float32 {
// amd64/v3:"ROUNDSS"
// arm64:"FRINTZS"
+ // wasm:"F32Trunc"
return float32(math.Trunc(float64(x)))
}
+func WideCopysignNarrow(x, y float32) float32 {
+ // wasm:"F32Copysign"
+ return float32(math.Copysign(float64(x), float64(y)))
+}
+
// ------------------------ //
// Subnormal tests //
// ------------------------ //