Quick fix for DataReadU32xN_SSSE3. Should fix crashes caused by r6802.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6809 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
james.jdunne 2011-01-11 01:29:24 +00:00
parent 687d6d2b7e
commit de40765504
1 changed files with 9 additions and 3 deletions

View File

@ -90,17 +90,23 @@ void DataReadU32xN_SSSE3(u32 *bufx16)
case 13: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 9: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 5: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 1: _mm_storeu_si128(store, _mm_shuffle_epi8(_mm_loadu_si128(load), mask1));
case 1: // 1 U32 left:
((u32 *)store)[0] = Common::swap32(((u32 *)load)[0]);
break;
case 14: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 10: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 6: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 2: _mm_storeu_si128(store, _mm_shuffle_epi8(_mm_loadu_si128(load), mask2));
case 2: // 2 U32s left:
((u32 *)store)[0] = Common::swap32(((u32 *)load)[0]);
((u32 *)store)[1] = Common::swap32(((u32 *)load)[1]);
break;
case 15: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 11: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 7: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 3: _mm_storeu_si128(store, _mm_shuffle_epi8(_mm_loadu_si128(load), mask3));
case 3: // 3 U32s left:
((u32 *)store)[0] = Common::swap32(((u32 *)load)[0]);
((u32 *)store)[1] = Common::swap32(((u32 *)load)[1]);
((u32 *)store)[2] = Common::swap32(((u32 *)load)[2]);
break;
case 16: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));
case 12: _mm_storeu_si128(store++, _mm_shuffle_epi8(_mm_loadu_si128(load++), mask4));