-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #2004 - RalfJung:simd, r=RalfJung
implement more SIMD intrinsics Requires rust-lang/rust#94681 With this, the cast, i32_ops, and f32_ops test suites of portable-simd pass. :) Cc #1912
- Loading branch information
Showing
4 changed files
with
346 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8876ca3dd46b99fe7e6ad937f11493d37996231e | ||
297273c45b205820a4c055082c71677197a40b55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// error-pattern: cannot be represented in target type `i32` | ||
#![feature(portable_simd)] | ||
use std::simd::*; | ||
|
||
fn main() { unsafe { | ||
let _x : i32x2 = f32x2::from_array([f32::MAX, f32::MIN]).to_int_unchecked(); | ||
} } |
Oops, something went wrong.