diff --git a/sysdeps/mips/mips32/libm-test-ulps b/sysdeps/mips/mips32/libm-test-ulps
index e38d37f..cbde8a3 100644
--- a/sysdeps/mips/mips32/libm-test-ulps
+++ b/sysdeps/mips/mips32/libm-test-ulps
@@ -24,28 +24,28 @@ idouble: 1
 ifloat: 1
 
 Function: "acosh":
-double: 1
+double: 2
 float: 2
-idouble: 1
+idouble: 2
 ifloat: 2
 
 Function: "acosh_downward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
 
 Function: "acosh_towardzero":
 double: 2
-float: 1
+float: 2
 idouble: 2
-ifloat: 1
+ifloat: 2
 
 Function: "acosh_upward":
 double: 2
-float: 1
+float: 2
 idouble: 2
-ifloat: 1
+ifloat: 2
 
 Function: "asin":
 float: 1
@@ -138,16 +138,16 @@ idouble: 1
 ifloat: 2
 
 Function: "atanh":
-double: 1
+double: 2
 float: 2
-idouble: 1
+idouble: 2
 ifloat: 2
 
 Function: "atanh_downward":
 double: 3
-float: 2
+float: 3
 idouble: 3
-ifloat: 2
+ifloat: 3
 
 Function: "atanh_towardzero":
 double: 2
@@ -156,9 +156,9 @@ idouble: 2
 ifloat: 2
 
 Function: "atanh_upward":
-double: 2
+double: 3
 float: 3
-idouble: 2
+idouble: 3
 ifloat: 3
 
 Function: "cabs":
@@ -498,9 +498,9 @@ idouble: 3
 ifloat: 1
 
 Function: "cbrt_upward":
-double: 4
+double: 5
 float: 1
-idouble: 4
+idouble: 5
 ifloat: 1
 
 Function: Real part of "ccos":
@@ -934,9 +934,9 @@ idouble: 2
 ifloat: 2
 
 Function: Real part of "csqrt_downward":
-double: 4
+double: 5
 float: 4
-idouble: 4
+idouble: 5
 ifloat: 4
 
 Function: Imaginary part of "csqrt_downward":
@@ -946,9 +946,9 @@ idouble: 4
 ifloat: 3
 
 Function: Real part of "csqrt_towardzero":
-double: 3
+double: 4
 float: 3
-idouble: 3
+idouble: 4
 ifloat: 3
 
 Function: Imaginary part of "csqrt_towardzero":
@@ -1090,15 +1090,15 @@ idouble: 1
 ifloat: 1
 
 Function: "erfc":
-double: 2
+double: 3
 float: 2
-idouble: 2
+idouble: 3
 ifloat: 2
 
 Function: "erfc_downward":
-double: 4
+double: 5
 float: 6
-idouble: 4
+idouble: 5
 ifloat: 6
 
 Function: "erfc_towardzero":
@@ -1108,9 +1108,9 @@ idouble: 3
 ifloat: 4
 
 Function: "erfc_upward":
-double: 4
+double: 5
 float: 6
-idouble: 4
+idouble: 5
 ifloat: 6
 
 Function: "exp10":
@@ -1185,9 +1185,9 @@ ifloat: 1
 
 Function: "expm1_towardzero":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 
 Function: "expm1_upward":
 double: 1
@@ -1196,28 +1196,28 @@ idouble: 1
 ifloat: 1
 
 Function: "gamma":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-
-Function: "gamma_downward":
 double: 4
-float: 3
+float: 4
 idouble: 4
-ifloat: 3
+ifloat: 4
+
+Function: "gamma_downward":
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
 
 Function: "gamma_towardzero":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
 
 Function: "gamma_upward":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
 
 Function: "hypot":
 double: 1
@@ -1308,28 +1308,28 @@ idouble: 5
 ifloat: 5
 
 Function: "lgamma":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-
-Function: "lgamma_downward":
 double: 4
-float: 3
+float: 4
 idouble: 4
-ifloat: 3
+ifloat: 4
+
+Function: "lgamma_downward":
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
 
 Function: "lgamma_towardzero":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
 
 Function: "lgamma_upward":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
 
 Function: "log":
 float: 1
@@ -1447,21 +1447,21 @@ ifloat: 1
 
 Function: "pow_downward":
 double: 1
-float: 3
+float: 4
 idouble: 1
-ifloat: 3
+ifloat: 4
 
 Function: "pow_towardzero":
 double: 1
-float: 4
+float: 8
 idouble: 1
-ifloat: 4
+ifloat: 8
 
 Function: "pow_upward":
 double: 1
-float: 4
+float: 8
 idouble: 1
-ifloat: 4
+ifloat: 8
 
 Function: "sin":
 float: 1
@@ -1578,27 +1578,27 @@ idouble: 3
 ifloat: 3
 
 Function: "tgamma":
-double: 3
+double: 5
 float: 5
-idouble: 3
+idouble: 5
 ifloat: 5
 
 Function: "tgamma_downward":
-double: 3
-float: 4
-idouble: 3
-ifloat: 4
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
 
 Function: "tgamma_towardzero":
-double: 3
+double: 5
 float: 5
-idouble: 3
+idouble: 5
 ifloat: 5
 
 Function: "tgamma_upward":
-double: 3
+double: 4
 float: 5
-idouble: 3
+idouble: 4
 ifloat: 5
 
 Function: "y0":
diff --git a/sysdeps/mips/mips64/libm-test-ulps b/sysdeps/mips/mips64/libm-test-ulps
index 1334eaa..a2cf3d4 100644
--- a/sysdeps/mips/mips64/libm-test-ulps
+++ b/sysdeps/mips/mips64/libm-test-ulps
@@ -30,34 +30,34 @@ ildouble: 1
 ldouble: 1
 
 Function: "acosh":
-double: 1
+double: 2
 float: 2
-idouble: 1
+idouble: 2
 ifloat: 2
 ildouble: 1
 ldouble: 1
 
 Function: "acosh_downward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
 Function: "acosh_towardzero":
 double: 2
-float: 1
+float: 2
 idouble: 2
-ifloat: 1
-ildouble: 1
-ldouble: 1
+ifloat: 2
+ildouble: 2
+ldouble: 2
 
 Function: "acosh_upward":
 double: 2
-float: 1
+float: 2
 idouble: 2
-ifloat: 1
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
@@ -184,18 +184,18 @@ ildouble: 1
 ldouble: 1
 
 Function: "atanh":
-double: 1
+double: 2
 float: 2
-idouble: 1
+idouble: 2
 ifloat: 2
 ildouble: 2
 ldouble: 2
 
 Function: "atanh_downward":
 double: 3
-float: 2
+float: 3
 idouble: 3
-ifloat: 2
+ifloat: 3
 ildouble: 3
 ldouble: 3
 
@@ -208,9 +208,9 @@ ildouble: 2
 ldouble: 2
 
 Function: "atanh_upward":
-double: 2
+double: 3
 float: 3
-idouble: 2
+idouble: 3
 ifloat: 3
 ildouble: 3
 ldouble: 3
@@ -662,9 +662,9 @@ ildouble: 1
 ldouble: 1
 
 Function: "cbrt_upward":
-double: 4
+double: 5
 float: 1
-idouble: 4
+idouble: 5
 ifloat: 1
 ildouble: 1
 ldouble: 1
@@ -1250,36 +1250,36 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "csqrt_downward":
-double: 4
+double: 5
 float: 4
-idouble: 4
+idouble: 5
 ifloat: 4
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: Imaginary part of "csqrt_downward":
 double: 4
 float: 3
 idouble: 4
 ifloat: 3
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: Real part of "csqrt_towardzero":
-double: 3
+double: 4
 float: 3
-idouble: 3
+idouble: 4
 ifloat: 3
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: Imaginary part of "csqrt_towardzero":
 double: 4
 float: 3
 idouble: 4
 ifloat: 3
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: Real part of "csqrt_upward":
 double: 5
@@ -1458,17 +1458,17 @@ ildouble: 2
 ldouble: 2
 
 Function: "erfc":
-double: 2
+double: 3
 float: 2
-idouble: 2
+idouble: 3
 ifloat: 2
 ildouble: 2
 ldouble: 2
 
 Function: "erfc_downward":
-double: 4
+double: 5
 float: 6
-idouble: 4
+idouble: 5
 ifloat: 6
 ildouble: 3
 ldouble: 3
@@ -1482,9 +1482,9 @@ ildouble: 3
 ldouble: 3
 
 Function: "erfc_upward":
-double: 4
+double: 5
 float: 6
-idouble: 4
+idouble: 5
 ifloat: 6
 ildouble: 3
 ldouble: 3
@@ -1581,9 +1581,9 @@ ldouble: 2
 
 Function: "expm1_towardzero":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 ildouble: 3
 ldouble: 3
 
@@ -1596,36 +1596,36 @@ ildouble: 3
 ldouble: 3
 
 Function: "gamma":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 1
-ldouble: 1
-
-Function: "gamma_downward":
 double: 4
-float: 3
+float: 4
 idouble: 4
-ifloat: 3
-ildouble: 2
-ldouble: 2
+ifloat: 4
+ildouble: 5
+ldouble: 5
+
+Function: "gamma_downward":
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
+ildouble: 8
+ldouble: 8
 
 Function: "gamma_towardzero":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-ildouble: 2
-ldouble: 2
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
+ildouble: 5
+ldouble: 5
 
 Function: "gamma_upward":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-ildouble: 3
-ldouble: 3
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
+ildouble: 8
+ldouble: 8
 
 Function: "hypot":
 double: 1
@@ -1748,36 +1748,36 @@ ildouble: 7
 ldouble: 7
 
 Function: "lgamma":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 1
-ldouble: 1
-
-Function: "lgamma_downward":
 double: 4
-float: 3
+float: 4
 idouble: 4
-ifloat: 3
-ildouble: 2
-ldouble: 2
+ifloat: 4
+ildouble: 5
+ldouble: 5
+
+Function: "lgamma_downward":
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
+ildouble: 8
+ldouble: 8
 
 Function: "lgamma_towardzero":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-ildouble: 2
-ldouble: 2
+double: 5
+float: 4
+idouble: 5
+ifloat: 4
+ildouble: 5
+ldouble: 5
 
 Function: "lgamma_upward":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-ildouble: 3
-ldouble: 3
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
+ildouble: 8
+ldouble: 8
 
 Function: "log":
 float: 1
@@ -1937,25 +1937,25 @@ ldouble: 2
 
 Function: "pow_downward":
 double: 1
-float: 3
+float: 4
 idouble: 1
-ifloat: 3
+ifloat: 4
 ildouble: 1
 ldouble: 1
 
 Function: "pow_towardzero":
 double: 1
-float: 4
+float: 8
 idouble: 1
-ifloat: 4
+ifloat: 8
 ildouble: 1
 ldouble: 1
 
 Function: "pow_upward":
 double: 1
-float: 4
+float: 8
 idouble: 1
-ifloat: 4
+ifloat: 8
 ildouble: 2
 ldouble: 2
 
@@ -2112,33 +2112,33 @@ ildouble: 3
 ldouble: 3
 
 Function: "tgamma":
-double: 3
+double: 5
 float: 5
-idouble: 3
+idouble: 5
 ifloat: 5
 ildouble: 4
 ldouble: 4
 
 Function: "tgamma_downward":
-double: 3
-float: 4
-idouble: 3
-ifloat: 4
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
 ildouble: 5
 ldouble: 5
 
 Function: "tgamma_towardzero":
-double: 3
+double: 5
 float: 5
-idouble: 3
+idouble: 5
 ifloat: 5
 ildouble: 5
 ldouble: 5
 
 Function: "tgamma_upward":
-double: 3
+double: 4
 float: 5
-idouble: 3
+idouble: 4
 ifloat: 5
 ildouble: 4
 ldouble: 4
