Masked vectors which hold shift amounts when creating following nodes: ISD::SHL, ISD::SRL or ISD::SRA.
Instructions that use said nodes, which have had their arguments altered are sll, srl, sra, bneg, bclr and bset.
For said instructions, the shift amount or the bit position that is specified in the corresponding vector elements
will be interpreted as the shift amount/bit position modulo the size of the element in bits.
The problem lies in compiling with -O2 enabled, where the instructions for formats .w and .d are not generated,
but are instead optimized away.
In this case, having shift amounts that are either negative or greater than the element bit size results in
generation of incorrect results when constant folding.
We remedy this by masking the operands for the nodes mentioned above before actually creating them, so that the
final result is correct before placed into the constant pool.