@@ -47,6 +47,11 @@ math_mpfr_test(
4747 hdrs = ["CeilTest.h" ],
4848)
4949
50+ math_mpfr_test (
51+ name = "ceilf16" ,
52+ hdrs = ["CeilTest.h" ],
53+ )
54+
5055math_mpfr_test (name = "cos" )
5156
5257math_mpfr_test (
@@ -144,6 +149,21 @@ math_mpfr_test(
144149 hdrs = ["AddTest.h" ],
145150)
146151
152+ math_mpfr_test (
153+ name = "f16add" ,
154+ hdrs = ["AddTest.h" ],
155+ )
156+
157+ math_mpfr_test (
158+ name = "f16addf" ,
159+ hdrs = ["AddTest.h" ],
160+ )
161+
162+ math_mpfr_test (
163+ name = "f16addl" ,
164+ hdrs = ["AddTest.h" ],
165+ )
166+
147167math_mpfr_test (
148168 name = "fdiv" ,
149169 hdrs = ["DivTest.h" ],
@@ -154,6 +174,21 @@ math_mpfr_test(
154174 hdrs = ["DivTest.h" ],
155175)
156176
177+ math_mpfr_test (
178+ name = "f16div" ,
179+ hdrs = ["DivTest.h" ],
180+ )
181+
182+ math_mpfr_test (
183+ name = "f16divf" ,
184+ hdrs = ["DivTest.h" ],
185+ )
186+
187+ math_mpfr_test (
188+ name = "f16divl" ,
189+ hdrs = ["DivTest.h" ],
190+ )
191+
157192# TODO: Add ffma, ffmal test. Missing stdlib/rand dependency.
158193
159194math_mpfr_test (
@@ -171,8 +206,21 @@ math_mpfr_test(
171206 hdrs = ["FloorTest.h" ],
172207)
173208
209+ math_mpfr_test (
210+ name = "floorf16" ,
211+ hdrs = ["FloorTest.h" ],
212+ )
213+
174214# TODO: Add fma, fmaf, fmal, fmul, fmull tests. Missing stdlib/rand dependency.
175215
216+ # math_mpfr_test(name = "f16mul")
217+ # math_mpfr_test(name = "f16mulf")
218+ # math_mpfr_test(name = "f16mull")
219+
220+ # math_mpfr_test(name = "f16fma")
221+ # math_mpfr_test(name = "f16fmaf")
222+ # math_mpfr_test(name = "f16fmal")
223+
176224math_mpfr_test (
177225 name = "frexp" ,
178226 hdrs = ["FrexpTest.h" ],
@@ -208,6 +256,21 @@ math_mpfr_test(
208256 hdrs = ["SubTest.h" ],
209257)
210258
259+ math_mpfr_test (
260+ name = "f16sub" ,
261+ hdrs = ["SubTest.h" ],
262+ )
263+
264+ math_mpfr_test (
265+ name = "f16subf" ,
266+ hdrs = ["SubTest.h" ],
267+ )
268+
269+ math_mpfr_test (
270+ name = "f16subl" ,
271+ hdrs = ["SubTest.h" ],
272+ )
273+
211274math_mpfr_test (
212275 name = "hypot" ,
213276 hdrs = ["HypotTest.h" ],
@@ -236,6 +299,11 @@ math_mpfr_test(
236299 hdrs = ["RoundToIntegerTest.h" ],
237300)
238301
302+ math_mpfr_test (
303+ name = "llrintf16" ,
304+ hdrs = ["RoundToIntegerTest.h" ],
305+ )
306+
239307math_mpfr_test (
240308 name = "llround" ,
241309 hdrs = ["RoundToIntegerTest.h" ],
@@ -251,6 +319,16 @@ math_mpfr_test(
251319 hdrs = ["RoundToIntegerTest.h" ],
252320)
253321
322+ math_mpfr_test (
323+ name = "lroundf16" ,
324+ hdrs = ["RoundToIntegerTest.h" ],
325+ )
326+
327+ math_mpfr_test (
328+ name = "llroundf16" ,
329+ hdrs = ["RoundToIntegerTest.h" ],
330+ )
331+
254332math_mpfr_test (name = "log" )
255333
256334math_mpfr_test (name = "logf" )
@@ -282,6 +360,11 @@ math_mpfr_test(
282360 hdrs = ["RoundToIntegerTest.h" ],
283361)
284362
363+ math_mpfr_test (
364+ name = "lrintf16" ,
365+ hdrs = ["RoundToIntegerTest.h" ],
366+ )
367+
285368math_mpfr_test (
286369 name = "lround" ,
287370 hdrs = ["RoundToIntegerTest.h" ],
@@ -323,6 +406,14 @@ math_mpfr_test(
323406 ],
324407)
325408
409+ math_mpfr_test (
410+ name = "nearbyintf16" ,
411+ hdrs = ["NearbyIntTest.h" ],
412+ deps = [
413+ "//libc:__support_cpp_array" ,
414+ ],
415+ )
416+
326417math_mpfr_test (name = "pow" )
327418
328419math_mpfr_test (name = "powf" )
@@ -357,6 +448,11 @@ math_mpfr_test(
357448 hdrs = ["RIntTest.h" ],
358449)
359450
451+ math_mpfr_test (
452+ name = "rintf16" ,
453+ hdrs = ["RIntTest.h" ],
454+ )
455+
360456math_mpfr_test (
361457 name = "roundeven" ,
362458 hdrs = ["RoundEvenTest.h" ],
@@ -372,6 +468,11 @@ math_mpfr_test(
372468 hdrs = ["RoundEvenTest.h" ],
373469)
374470
471+ math_mpfr_test (
472+ name = "roundevenf16" ,
473+ hdrs = ["RoundEvenTest.h" ],
474+ )
475+
375476math_mpfr_test (
376477 name = "round" ,
377478 hdrs = ["RoundTest.h" ],
@@ -387,6 +488,11 @@ math_mpfr_test(
387488 hdrs = ["RoundTest.h" ],
388489)
389490
491+ math_mpfr_test (
492+ name = "roundf16" ,
493+ hdrs = ["RoundTest.h" ],
494+ )
495+
390496math_mpfr_test (name = "sin" )
391497
392498math_mpfr_test (
@@ -437,6 +543,21 @@ math_mpfr_test(
437543 hdrs = ["SqrtTest.h" ],
438544)
439545
546+ math_mpfr_test (
547+ name = "f16sqrt" ,
548+ hdrs = ["SqrtTest.h" ],
549+ )
550+
551+ math_mpfr_test (
552+ name = "f16sqrtf" ,
553+ hdrs = ["SqrtTest.h" ],
554+ )
555+
556+ math_mpfr_test (
557+ name = "f16sqrtl" ,
558+ hdrs = ["SqrtTest.h" ],
559+ )
560+
440561math_mpfr_test (name = "tan" )
441562
442563math_mpfr_test (
@@ -463,3 +584,46 @@ math_mpfr_test(
463584 name = "truncl" ,
464585 hdrs = ["TruncTest.h" ],
465586)
587+
588+ math_mpfr_test (
589+ name = "truncf16" ,
590+ hdrs = ["TruncTest.h" ],
591+ )
592+
593+ math_mpfr_test (name = "cosf16" )
594+
595+ math_mpfr_test (name = "cospif16" )
596+
597+ math_mpfr_test (name = "sinf16" )
598+
599+ math_mpfr_test (name = "sinpif16" )
600+
601+ math_mpfr_test (name = "tanf16" )
602+
603+ math_mpfr_test (name = "tanpif16" )
604+
605+ math_mpfr_test (name = "expf16" )
606+
607+ math_mpfr_test (name = "exp2f16" )
608+
609+ math_mpfr_test (name = "exp2m1f16" )
610+
611+ math_mpfr_test (name = "exp10f16" )
612+
613+ math_mpfr_test (name = "exp10m1f16" )
614+
615+ math_mpfr_test (name = "asinf16" )
616+
617+ math_mpfr_test (name = "acosf16" )
618+
619+ math_mpfr_test (name = "coshf16" )
620+
621+ math_mpfr_test (name = "sinhf16" )
622+
623+ math_mpfr_test (name = "tanhf16" )
624+
625+ math_mpfr_test (name = "logf16" )
626+
627+ math_mpfr_test (name = "log2f16" )
628+
629+ math_mpfr_test (name = "log10f16" )
0 commit comments