_mm_extract_epi16: use "& 7" when index is out of bound.
authorManman Ren <manman.ren@gmail.com>
Tue, 22 Oct 2013 19:24:42 +0000 (19:24 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 22 Oct 2013 19:24:42 +0000 (19:24 +0000)
commitbe38b9e15fde35e15cf87f28540bd34edfce4db6
tree370844e60c8b3df7dd8317944611c5f000d0c66c
parent7c5bc2fc2bd1d57f870009bb71548ee7a0756056
_mm_extract_epi16: use "& 7" when index is out of bound.

This is in line with implementation of _mm_extract_pi16.
rdar://15250497

llvm-svn: 193187
clang/lib/Headers/emmintrin.h
clang/test/CodeGen/sse-builtins.c