This ports the AND case from AArch64DAGToDAGISel::tryShiftAmountMod.
This allows us to fold a G_AND into a G_LSHR/G_ASHR/G_SHL. This is possible when the G_AND is against a constant with all ones in the low bits checked by a variable shift instruction.
Use getConstantVRegValWithLookthrough?