[NPB] add cg translated code