@@ -47,6 +47,11 @@ math_mpfr_test(
47
47
hdrs = ["CeilTest.h" ],
48
48
)
49
49
50
+ math_mpfr_test (
51
+ name = "ceilf16" ,
52
+ hdrs = ["CeilTest.h" ],
53
+ )
54
+
50
55
math_mpfr_test (name = "cos" )
51
56
52
57
math_mpfr_test (
@@ -144,6 +149,21 @@ math_mpfr_test(
144
149
hdrs = ["AddTest.h" ],
145
150
)
146
151
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
+
147
167
math_mpfr_test (
148
168
name = "fdiv" ,
149
169
hdrs = ["DivTest.h" ],
@@ -154,6 +174,21 @@ math_mpfr_test(
154
174
hdrs = ["DivTest.h" ],
155
175
)
156
176
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
+
157
192
# TODO: Add ffma, ffmal test. Missing stdlib/rand dependency.
158
193
159
194
math_mpfr_test (
@@ -171,8 +206,21 @@ math_mpfr_test(
171
206
hdrs = ["FloorTest.h" ],
172
207
)
173
208
209
+ math_mpfr_test (
210
+ name = "floorf16" ,
211
+ hdrs = ["FloorTest.h" ],
212
+ )
213
+
174
214
# TODO: Add fma, fmaf, fmal, fmul, fmull tests. Missing stdlib/rand dependency.
175
215
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
+
176
224
math_mpfr_test (
177
225
name = "frexp" ,
178
226
hdrs = ["FrexpTest.h" ],
@@ -208,6 +256,21 @@ math_mpfr_test(
208
256
hdrs = ["SubTest.h" ],
209
257
)
210
258
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
+
211
274
math_mpfr_test (
212
275
name = "hypot" ,
213
276
hdrs = ["HypotTest.h" ],
@@ -236,6 +299,11 @@ math_mpfr_test(
236
299
hdrs = ["RoundToIntegerTest.h" ],
237
300
)
238
301
302
+ math_mpfr_test (
303
+ name = "llrintf16" ,
304
+ hdrs = ["RoundToIntegerTest.h" ],
305
+ )
306
+
239
307
math_mpfr_test (
240
308
name = "llround" ,
241
309
hdrs = ["RoundToIntegerTest.h" ],
@@ -251,6 +319,16 @@ math_mpfr_test(
251
319
hdrs = ["RoundToIntegerTest.h" ],
252
320
)
253
321
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
+
254
332
math_mpfr_test (name = "log" )
255
333
256
334
math_mpfr_test (name = "logf" )
@@ -282,6 +360,11 @@ math_mpfr_test(
282
360
hdrs = ["RoundToIntegerTest.h" ],
283
361
)
284
362
363
+ math_mpfr_test (
364
+ name = "lrintf16" ,
365
+ hdrs = ["RoundToIntegerTest.h" ],
366
+ )
367
+
285
368
math_mpfr_test (
286
369
name = "lround" ,
287
370
hdrs = ["RoundToIntegerTest.h" ],
@@ -323,6 +406,14 @@ math_mpfr_test(
323
406
],
324
407
)
325
408
409
+ math_mpfr_test (
410
+ name = "nearbyintf16" ,
411
+ hdrs = ["NearbyIntTest.h" ],
412
+ deps = [
413
+ "//libc:__support_cpp_array" ,
414
+ ],
415
+ )
416
+
326
417
math_mpfr_test (name = "pow" )
327
418
328
419
math_mpfr_test (name = "powf" )
@@ -357,6 +448,11 @@ math_mpfr_test(
357
448
hdrs = ["RIntTest.h" ],
358
449
)
359
450
451
+ math_mpfr_test (
452
+ name = "rintf16" ,
453
+ hdrs = ["RIntTest.h" ],
454
+ )
455
+
360
456
math_mpfr_test (
361
457
name = "roundeven" ,
362
458
hdrs = ["RoundEvenTest.h" ],
@@ -372,6 +468,11 @@ math_mpfr_test(
372
468
hdrs = ["RoundEvenTest.h" ],
373
469
)
374
470
471
+ math_mpfr_test (
472
+ name = "roundevenf16" ,
473
+ hdrs = ["RoundEvenTest.h" ],
474
+ )
475
+
375
476
math_mpfr_test (
376
477
name = "round" ,
377
478
hdrs = ["RoundTest.h" ],
@@ -387,6 +488,11 @@ math_mpfr_test(
387
488
hdrs = ["RoundTest.h" ],
388
489
)
389
490
491
+ math_mpfr_test (
492
+ name = "roundf16" ,
493
+ hdrs = ["RoundTest.h" ],
494
+ )
495
+
390
496
math_mpfr_test (name = "sin" )
391
497
392
498
math_mpfr_test (
@@ -437,6 +543,21 @@ math_mpfr_test(
437
543
hdrs = ["SqrtTest.h" ],
438
544
)
439
545
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
+
440
561
math_mpfr_test (name = "tan" )
441
562
442
563
math_mpfr_test (
@@ -463,3 +584,46 @@ math_mpfr_test(
463
584
name = "truncl" ,
464
585
hdrs = ["TruncTest.h" ],
465
586
)
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