add support for select instructions