Commit | Line | Data |
---|---|---|
b47b2d32 NM |
1 | Doctest coresimd::x86::__m256 failed on processors withouth "avx" feature. |
2 | Backported patch with changes from https://github.com/rust-lang-nursery/stdsimd/issues/481 | |
3 | ||
4 | --- rustc-1.26.2-src-orig/src/stdsimd/coresimd/x86/mod.rs 1970-01-01 05:00:00.000000000 +0500 | |
5 | +++ rustc-1.26.2-src/src/stdsimd/coresimd/x86/mod.rs 2018-06-22 00:01:55.142026720 +0500 | |
6 | @@ -293,13 +293,13 @@ | |
7 | /// use std::arch::x86_64::*; | |
8 | /// | |
9 | /// # fn main() { | |
10 | - /// # #[target_feature(enable = "sse")] | |
11 | + /// # #[target_feature(enable = "avx")] | |
12 | /// # unsafe fn foo() { | |
13 | /// let eight_zeros = _mm256_setzero_ps(); | |
14 | /// let eight_ones = _mm256_set1_ps(1.0); | |
15 | /// let eight_floats = _mm256_set_ps(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); | |
16 | /// # } | |
17 | - /// # if is_x86_feature_detected!("sse") { unsafe { foo() } } | |
18 | + /// # if is_x86_feature_detected!("avx") { unsafe { foo() } } | |
19 | /// # } | |
20 | /// ``` | |
21 | pub struct __m256(f32, f32, f32, f32, f32, f32, f32, f32); |