Use templates to simplify the simpler binary-op instructions.