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) STOP 1; \
7 if (runtime_popcnt(val) /= res) STOP 2
10 if (poppar(val) /= modulo(popcnt(val),2)) STOP 3; \
11 if (runtime_poppar(val) /= poppar(val)) STOP 4
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