Support for intrinsics cttz, ctlz, ctpop and bswap

This patch adds support for all intrinsics with corresponding test cases.