Add intrinsic function and generic test cases.