aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/sparc32/fpu/libm-test-ulps14
-rw-r--r--sysdeps/sparc/sparc64/fpu/libm-test-ulps14
2 files changed, 28 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc32/fpu/libm-test-ulps b/sysdeps/sparc/sparc32/fpu/libm-test-ulps
index 39064eb61e..02476d4014 100644
--- a/sysdeps/sparc/sparc32/fpu/libm-test-ulps
+++ b/sysdeps/sparc/sparc32/fpu/libm-test-ulps
@@ -18,6 +18,20 @@ Test "atanh (0.7) == 0.8673005276940531944":
double: 1
idouble: 1
+# atan2
+Test "atan2 (0.7, -1.0) == 2.5308666892005846219":
+float: 3.0000
+ifloat: 3.0000
+Test "atan2 (-0.7, -1.0) == -2.5308666892005846219":
+float: 3.0000
+ifloat: 3.0000
+Test "atan2 (1.4, -0.93) == 2.1571487668237843755":
+float: 4.0000
+ifloat: 4.0000
+Function: "atan2":
+float: 4.0000
+ifloat: 4.0000
+
# cabs
Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
float: 1
diff --git a/sysdeps/sparc/sparc64/fpu/libm-test-ulps b/sysdeps/sparc/sparc64/fpu/libm-test-ulps
index cd8ffb3cc4..c2ac22d14f 100644
--- a/sysdeps/sparc/sparc64/fpu/libm-test-ulps
+++ b/sysdeps/sparc/sparc64/fpu/libm-test-ulps
@@ -31,6 +31,20 @@ Test "atanh (0.7) == 0.8673005276940531944":
double: 1
idouble: 1
+# atan2
+Test "atan2 (0.7, -1.0) == 2.5308666892005846219":
+float: 3.0000
+ifloat: 3.0000
+Test "atan2 (-0.7, -1.0) == -2.5308666892005846219":
+float: 3.0000
+ifloat: 3.0000
+Test "atan2 (1.4, -0.93) == 2.1571487668237843755":
+float: 4.0000
+ifloat: 4.0000
+Function: "atan2":
+float: 4.0000
+ifloat: 4.0000
+
# cabs
Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
float: 1