2 ! { dg-options "-ffree-line-length-none" }
3 ! { dg-require-effective-target fortran_integer_16 }
5 #define CHECK(val,res) \
6 if (popcnt(val) /= res) call abort ; \
7 if (runtime_popcnt(val) /= res) call abort
10 if (poppar(val) /= modulo(popcnt(val),2)) call abort ; \
11 if (runtime_poppar(val) /= poppar(val)) call abort
19 CHECK(huge(0_16), 128-1)
30 integer function runtime_popcnt (i) result(res)
31 integer(kind=16), intent(in) :: i
35 integer function runtime_poppar (i) result(res)
36 integer(kind=16), intent(in) :: i