cell: Implement code-gen for logic op