We fixed some BUILD_VECTOR issues in D5194 and D5170. It seems I have missed a cast.
I've also added a bunch of tests with i64 vector elements. Pretty minor change.
This looks fine to me, go ahead and commit.
Committed as r218751.