about summary refs log tree commit diff
path: root/library/stdarch/examples
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-12-11 20:35:28 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-12-11 20:35:28 -0500
commit8b27771cc5d2f2c7c61519475a05a59c8efbbfdd (patch)
treec7b99d8a35d20adb3ecc5e8c2835118cfaa910f0 /library/stdarch/examples
parentc01240299f223409efbebd56feae39f384aeab66 (diff)
downloadrust-8b27771cc5d2f2c7c61519475a05a59c8efbbfdd.tar.gz
rust-8b27771cc5d2f2c7c61519475a05a59c8efbbfdd.zip
progress
Diffstat (limited to 'library/stdarch/examples')
-rw-r--r--library/stdarch/examples/play.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/stdarch/examples/play.rs b/library/stdarch/examples/play.rs
index 89a771fc519..74980da4d6d 100644
--- a/library/stdarch/examples/play.rs
+++ b/library/stdarch/examples/play.rs
@@ -3,6 +3,11 @@ extern crate stdsimd;
 use std::env;
 use stdsimd as s;
 
+#[inline(never)]
+fn foobar(a: s::f64x2, b: s::f64x2) -> s::f64x2 {
+    s::_mm_cmpge_sd(a, b)
+}
+
 fn main() {
     let x0: f64 = env::args().nth(1).unwrap().parse().unwrap();
     let x1: f64 = env::args().nth(2).unwrap().parse().unwrap();
@@ -15,6 +20,7 @@ fn main() {
 
     let a = s::f64x2::new(x0, x1);
     let b = s::f64x2::new(x2, x3);
-    let r = s::_mm_div_sd(a, b);
+    // let r = s::_mm_cmplt_sd(a, b);
+    let r = foobar(a, b);
     println!("{:?}", r);
 }