added codegen for some intrinsics