Fix undefined behavior while testing shifts
Fix undefined behavior while testing shifts

shifting by more than register width is undefined behavior, not the perfect test
:-)

Fix #2174

xtensor-stack/xtensor,QuantStack/xtensor,xtensor-stack/xtensor,JohanMabille/xtensor,QuantStack/xtensor,JohanMabille/xtensor