| commit | 6da8a243f91a54096927b566d43665427a18a6cb | [log] [tgz] |
|---|---|---|
| author | Robert Lougher <rob.lougher@gmail.com> | Mon Sep 22 11:54:38 2014 +0000 |
| committer | Robert Lougher <rob.lougher@gmail.com> | Mon Sep 22 11:54:38 2014 +0000 |
| tree | 2005b805b8120ec28d6fc59d078e46c1389c6db5 | |
| parent | 14f97d0017c4d5d1b3879d3d6c520c9caccf79ea [diff] |
Fix assert when decoding PSHUFB mask The PSHUFB mask decode routine used to assert if the mask index was out of range (<0 or greater than the size of the vector). The problem is, we can legitimately have a PSHUFB with a large index using intrinsics. The instruction only uses the least significant 4 bits. This change removes the assert and masks the index to match the instruction behaviour. llvm-svn: 218242