Fix a bug where integer constants were not getting casted to correct type when
generating x86 intrinsics during peepholing.

Add test for above.

Untabify simd_op_check.cpp.