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-28 11:24:33 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-07-29 11:03:55 +0200
commit76b89476c3aa8ae96d544684218f772223b18031 (patch)
tree436c0e67c769f55aa1e24f94a00f644014063b3c /example/std_example.rs
parent78e0525366d0e2873797624a558fd026d8809cde (diff)
downloadrust-76b89476c3aa8ae96d544684218f772223b18031.tar.gz
rust-76b89476c3aa8ae96d544684218f772223b18031.zip
[WIP] simd_shuffle*
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index 7fe1d082e34..8a4a6337ca7 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -59,10 +59,12 @@ unsafe fn test_simd() {
     let or = _mm_or_si128(x, y);
     let cmp_eq = _mm_cmpeq_epi8(y, y);
     let cmp_lt = _mm_cmplt_epi8(y, y);
+    let shl = _mm_slli_si128(y, 1);
 
     assert_eq!(std::mem::transmute::<_, [u16; 8]>(or), [7, 7, 7, 7, 7, 7, 7, 7]);
     assert_eq!(std::mem::transmute::<_, [u16; 8]>(cmp_eq), [0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]);
     assert_eq!(std::mem::transmute::<_, [u16; 8]>(cmp_lt), [0, 0, 0, 0, 0, 0, 0, 0]);
+    assert_eq!(std::mem::transmute::<_, [u16; 8]>(or), [7, 7, 7, 7, 7, 7, 7, 0]);
 }
 
 #[derive(PartialEq)]