Mask rhs of shift operations in the IR for constants

Saves an instruction for shifts with contants

Change-Id: Ia12355d2fe2b9f80631056cda5edd79b45189e99
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>