Separate the test for blend shuffle_vector masks

Separate the test for blend shuffle_vector masks into isBlendMask.
This function will also be used to test if a vector shuffle is legal. No
change in functionality was intended, but we ended up improving codegen on
two tests, which were being (more) optimized only if the resulting shuffle
was legal.