Get stdsimd working in stage0
This commit is contained in:
parent
f8f878b61b
commit
10d166db0e
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ extern "platform-intrinsic" {
|
|||
pub fn simd_reduce_any<T>(x: T) -> bool;
|
||||
|
||||
pub fn simd_select<M, T>(m: M, a: T, b: T) -> T;
|
||||
#[cfg(not(stage0))]
|
||||
pub fn simd_select_bitmask<M, T>(m: M, a: T, b: T) -> T;
|
||||
|
||||
pub fn simd_fmin<T>(a: T, b: T) -> T;
|
||||
|
|
@ -57,3 +58,10 @@ extern "platform-intrinsic" {
|
|||
pub fn simd_fsqrt<T>(a: T) -> T;
|
||||
pub fn simd_fma<T>(a: T, b: T, c: T) -> T;
|
||||
}
|
||||
|
||||
// incorrect, but compiles until the bootstrap compiler is updated
|
||||
#[cfg(stage0)]
|
||||
pub fn simd_select_bitmask<M, T>(m: M, a: T, b: T) -> T {
|
||||
drop((m, b));
|
||||
a
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue