Migrate i586::sse41 to vendor types (#276)

This commit is contained in:
Alex Crichton 2018-01-11 23:18:15 -06:00 committed by GitHub
parent 3148881fa2
commit fde52cb334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 511 additions and 484 deletions

View file

@ -2333,12 +2333,6 @@ mod tests {
use x86::*;
use v128::*;
// not actually an intrinsics in SSE2 but useful in the tests below
#[target_feature = "+sse2"]
unsafe fn _mm_setr_epi64x(a: i64, b: i64) -> __m128i {
_mm_set_epi64x(b, a)
}
#[simd_test = "sse2"]
unsafe fn test_mm_pause() {
_mm_pause();

File diff suppressed because it is too large Load diff

View file

@ -30,3 +30,10 @@ pub unsafe fn get_m128(a: __m128, idx: usize) -> f32 {
union A { a: __m128, b: [f32; 4] };
mem::transmute::<__m128, A>(a).b[idx]
}
// not actually an intrinsic but useful in various tests as we proted from
// `i64x2::new` which is backwards from `_mm_set_epi64x`
#[target_feature = "+sse2"]
pub unsafe fn _mm_setr_epi64x(a: i64, b: i64) -> __m128i {
_mm_set_epi64x(b, a)
}