summary refs log tree commit diff
path: root/math/gen-tgmath-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'math/gen-tgmath-tests.py')
-rwxr-xr-xmath/gen-tgmath-tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/math/gen-tgmath-tests.py b/math/gen-tgmath-tests.py
index 364963da65..858fd4c309 100755
--- a/math/gen-tgmath-tests.py
+++ b/math/gen-tgmath-tests.py
@@ -696,7 +696,8 @@ class Tests(object):
         self.add_tests('fromfpx', 'intmax_t', ['r', 'int', 'unsigned int'])
         self.add_tests('ufromfp', 'uintmax_t', ['r', 'int', 'unsigned int'])
         self.add_tests('ufromfpx', 'uintmax_t', ['r', 'int', 'unsigned int'])
-        for fn in ('add', 'div', 'mul', 'sub'):
+        for fn, args in (('add', 2), ('div', 2), ('mul', 2), ('sqrt', 1),
+                         ('sub', 2)):
             for ret, prefix in (('float', 'f'),
                                 ('double', 'd'),
                                 ('_Float16', 'f16'),
@@ -705,7 +706,7 @@ class Tests(object):
                                 ('_Float128', 'f128'),
                                 ('_Float32x', 'f32x'),
                                 ('_Float64x', 'f64x')):
-                self.add_tests(prefix + fn, ret, ['r', 'r'])
+                self.add_tests(prefix + fn, ret, ['r'] * args)
         # Miscellaneous functions.
         self.add_tests('scalb', 's', ['s', 's'])