Get stdsimd working in stage0

This commit is contained in:
Alex Crichton 2018-12-17 13:39:55 -08:00
parent f8f878b61b
commit 10d166db0e

View file

@ -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
}