Due to a problem in the Intel HLS Compiler Pro version 18.1 or earlier, you may see unexpected value by __builtin_popcountll(unsigned long long) and __builtin_popcountl(unsigned long). You also see ‘Error: Cosim testbench elaboration failed.’ with these builtin functions during compling in the Intel HLS Compiler Stanard version 18.1 or earlier.
Device Family: Intel® Arria® 10, Arria® V, Intel® Cyclone® 10 GX, Cyclone® V, Intel® MAX® 10, Intel® Stratix® 10
Last Modified: October 17, 2018
Version Found: v18.0
Bug ID: FB: 2205697241;