diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-08-15 18:55:32 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-08-15 19:08:19 +0200 |
| commit | c1a68b1386c26b92f2c6126bee8cc808f4ff93a5 (patch) | |
| tree | a9da16e53d3db7e3097cbc32755de7490b4f593f /example | |
| parent | 847cc7ab2a96c9d2f3c225dc8e86f19a24eefcb4 (diff) | |
| download | rust-c1a68b1386c26b92f2c6126bee8cc808f4ff93a5.tar.gz rust-c1a68b1386c26b92f2c6126bee8cc808f4ff93a5.zip | |
Emulate the cpuid arch intrinsic
Diffstat (limited to 'example')
| -rw-r--r-- | example/std_example.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index 184b63e5d83..8e6ab2d712c 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -126,6 +126,8 @@ fn panic(_: u128) { #[target_feature(enable = "sse2")] unsafe fn test_simd() { + assert!(is_x86_feature_detected!("sse2")); + let x = _mm_setzero_si128(); let y = _mm_set1_epi16(7); let or = _mm_or_si128(x, y); |
