@@ -507,11 +507,9 @@ add_fp_unittest(
507507 RoundToIntegerTest.h
508508 DEPENDS
509509 libc.src.errno.errno
510- libc.src.fenv.feclearexcept
511- libc.src.fenv.feraiseexcept
512- libc.src.fenv.fetestexcept
513510 libc.src.math.lround
514511 libc.src.__support.CPP.algorithm
512+ libc.src.__support.FPUtil.fenv_impl
515513 libc.src.__support.FPUtil.fp_bits
516514)
517515
@@ -525,11 +523,9 @@ add_fp_unittest(
525523 RoundToIntegerTest.h
526524 DEPENDS
527525 libc.src.errno.errno
528- libc.src.fenv.feclearexcept
529- libc.src.fenv.feraiseexcept
530- libc.src.fenv.fetestexcept
531526 libc.src.math.lroundf
532527 libc.src.__support.CPP.algorithm
528+ libc.src.__support.FPUtil.fenv_impl
533529 libc.src.__support.FPUtil.fp_bits
534530)
535531
@@ -543,11 +539,25 @@ add_fp_unittest(
543539 RoundToIntegerTest.h
544540 DEPENDS
545541 libc.src.errno.errno
546- libc.src.fenv.feclearexcept
547- libc.src.fenv.feraiseexcept
548- libc.src.fenv.fetestexcept
549542 libc.src.math.lroundl
550543 libc.src.__support.CPP.algorithm
544+ libc.src.__support.FPUtil.fenv_impl
545+ libc.src.__support.FPUtil.fp_bits
546+ )
547+
548+ add_fp_unittest(
549+ lroundf16_test
550+ SUITE
551+ libc-math-smoke-tests
552+ SRCS
553+ lroundf16_test.cpp
554+ HDRS
555+ RoundToIntegerTest.h
556+ DEPENDS
557+ libc.src.errno.errno
558+ libc.src.math.lroundf16
559+ libc.src.__support.CPP.algorithm
560+ libc.src.__support.FPUtil.fenv_impl
551561 libc.src.__support.FPUtil.fp_bits
552562)
553563
@@ -561,11 +571,9 @@ add_fp_unittest(
561571 RoundToIntegerTest.h
562572 DEPENDS
563573 libc.src.errno.errno
564- libc.src.fenv.feclearexcept
565- libc.src.fenv.feraiseexcept
566- libc.src.fenv.fetestexcept
567574 libc.src.math.lroundf128
568575 libc.src.__support.CPP.algorithm
576+ libc.src.__support.FPUtil.fenv_impl
569577 libc.src.__support.FPUtil.fp_bits
570578)
571579
@@ -579,11 +587,9 @@ add_fp_unittest(
579587 RoundToIntegerTest.h
580588 DEPENDS
581589 libc.src.errno.errno
582- libc.src.fenv.feclearexcept
583- libc.src.fenv.feraiseexcept
584- libc.src.fenv.fetestexcept
585590 libc.src.math.llround
586591 libc.src.__support.CPP.algorithm
592+ libc.src.__support.FPUtil.fenv_impl
587593 libc.src.__support.FPUtil.fp_bits
588594)
589595
@@ -597,11 +603,9 @@ add_fp_unittest(
597603 RoundToIntegerTest.h
598604 DEPENDS
599605 libc.src.errno.errno
600- libc.src.fenv.feclearexcept
601- libc.src.fenv.feraiseexcept
602- libc.src.fenv.fetestexcept
603606 libc.src.math.llroundf
604607 libc.src.__support.CPP.algorithm
608+ libc.src.__support.FPUtil.fenv_impl
605609 libc.src.__support.FPUtil.fp_bits
606610)
607611
@@ -615,11 +619,9 @@ add_fp_unittest(
615619 RoundToIntegerTest.h
616620 DEPENDS
617621 libc.src.errno.errno
618- libc.src.fenv.feclearexcept
619- libc.src.fenv.feraiseexcept
620- libc.src.fenv.fetestexcept
621622 libc.src.math.llroundl
622623 libc.src.__support.CPP.algorithm
624+ libc.src.__support.FPUtil.fenv_impl
623625 libc.src.__support.FPUtil.fp_bits
624626)
625627
@@ -633,11 +635,9 @@ add_fp_unittest(
633635 RoundToIntegerTest.h
634636 DEPENDS
635637 libc.src.errno.errno
636- libc.src.fenv.feclearexcept
637- libc.src.fenv.feraiseexcept
638- libc.src.fenv.fetestexcept
639638 libc.src.math.llroundf128
640639 libc.src.__support.CPP.algorithm
640+ libc.src.__support.FPUtil.fenv_impl
641641 libc.src.__support.FPUtil.fp_bits
642642)
643643
@@ -720,6 +720,7 @@ add_fp_unittest(
720720 HDRS
721721 RoundToIntegerTest.h
722722 DEPENDS
723+ libc.src.errno.errno
723724 libc.src.math.lrint
724725 libc.src.__support.CPP.algorithm
725726 libc.src.__support.FPUtil.fenv_impl
@@ -735,6 +736,7 @@ add_fp_unittest(
735736 HDRS
736737 RoundToIntegerTest.h
737738 DEPENDS
739+ libc.src.errno.errno
738740 libc.src.math.lrintf
739741 libc.src.__support.CPP.algorithm
740742 libc.src.__support.FPUtil.fenv_impl
@@ -750,6 +752,7 @@ add_fp_unittest(
750752 HDRS
751753 RoundToIntegerTest.h
752754 DEPENDS
755+ libc.src.errno.errno
753756 libc.src.math.lrintl
754757 libc.src.__support.CPP.algorithm
755758 libc.src.__support.FPUtil.fenv_impl
@@ -765,6 +768,7 @@ add_fp_unittest(
765768 HDRS
766769 RoundToIntegerTest.h
767770 DEPENDS
771+ libc.src.errno.errno
768772 libc.src.math.lrintf16
769773 libc.src.__support.CPP.algorithm
770774 libc.src.__support.FPUtil.fenv_impl
@@ -780,6 +784,7 @@ add_fp_unittest(
780784 HDRS
781785 RoundToIntegerTest.h
782786 DEPENDS
787+ libc.src.errno.errno
783788 libc.src.math.lrintf128
784789 libc.src.__support.CPP.algorithm
785790 libc.src.__support.FPUtil.fenv_impl
@@ -795,6 +800,7 @@ add_fp_unittest(
795800 HDRS
796801 RoundToIntegerTest.h
797802 DEPENDS
803+ libc.src.errno.errno
798804 libc.src.math.llrint
799805 libc.src.__support.CPP.algorithm
800806 libc.src.__support.FPUtil.fenv_impl
@@ -810,6 +816,7 @@ add_fp_unittest(
810816 HDRS
811817 RoundToIntegerTest.h
812818 DEPENDS
819+ libc.src.errno.errno
813820 libc.src.math.llrintf
814821 libc.src.__support.CPP.algorithm
815822 libc.src.__support.FPUtil.fenv_impl
@@ -825,6 +832,7 @@ add_fp_unittest(
825832 HDRS
826833 RoundToIntegerTest.h
827834 DEPENDS
835+ libc.src.errno.errno
828836 libc.src.math.llrintl
829837 libc.src.__support.CPP.algorithm
830838 libc.src.__support.FPUtil.fenv_impl
@@ -840,6 +848,7 @@ add_fp_unittest(
840848 HDRS
841849 RoundToIntegerTest.h
842850 DEPENDS
851+ libc.src.errno.errno
843852 libc.src.math.llrintf16
844853 libc.src.__support.CPP.algorithm
845854 libc.src.__support.FPUtil.fenv_impl
@@ -855,6 +864,7 @@ add_fp_unittest(
855864 HDRS
856865 RoundToIntegerTest.h
857866 DEPENDS
867+ libc.src.errno.errno
858868 libc.src.math.llrintf128
859869 libc.src.__support.CPP.algorithm
860870 libc.src.__support.FPUtil.fenv_impl
0 commit comments