about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-07-29 18:59:17 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-07-29 18:59:17 +0200
commitee4927e069ae317c4b2360eafe07a3fbaa8f0988 (patch)
tree53bd9b6253b349525829cedf22a639dc8fe2fc34 /example/std_example.rs
parentaae9a8b91dafe09adee1d80079e79526f57d29eb (diff)
downloadrust-ee4927e069ae317c4b2360eafe07a3fbaa8f0988.tar.gz
rust-ee4927e069ae317c4b2360eafe07a3fbaa8f0988.zip
Fix _mm_movemask_epi8
The order of iteration was wrong
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index e3b3edd86af..8a43af5bd80 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -67,6 +67,9 @@ unsafe fn test_simd() {
     test_mm_slli_si128();
     test_mm_movemask_epi8();
     test_mm256_movemask_epi8();
+
+    let mask1 = _mm_movemask_epi8(dbg!(_mm_setr_epi8(255u8 as i8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)));
+    assert_eq!(mask1, 1);
 }
 
 #[target_feature(enable = "sse2")]