brintos

brintos / llvm-project-archived public Read only

0
0
Text · 659 B · c3f8059 Raw
34 lines · plain
1add_custom_target(libc-stdbit-tests)2 3set(prefixes4  leading_zeros5  leading_ones6  trailing_zeros7  trailing_ones8  first_leading_zero9  first_leading_one10  first_trailing_zero11  first_trailing_one12  count_zeros13  count_ones14  has_single_bit15  bit_width16  bit_floor17  bit_ceil18)19set(suffixes c s i l ll)20foreach(prefix IN LISTS prefixes)21  foreach(suffix IN LISTS suffixes)22    add_libc_test(23      stdc_${prefix}_u${suffix}_test24      SUITE25        libc-stdbit-tests26      SRCS27        stdc_${prefix}_u${suffix}_test.cpp28      DEPENDS29        libc.src.__support.CPP.limits30        libc.src.stdbit.stdc_${prefix}_u${suffix}31    )32  endforeach()33endforeach()34