Skip to content

Commit 513e067

Browse files
committed
Get stdsimd working in stage0
1 parent 9bf9c83 commit 513e067

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

coresimd/simd_llvm.rs

+8
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ extern "platform-intrinsic" {
4949
pub fn simd_reduce_any<T>(x: T) -> bool;
5050

5151
pub fn simd_select<M, T>(m: M, a: T, b: T) -> T;
52+
#[cfg(not(stage0))]
5253
pub fn simd_select_bitmask<M, T>(m: M, a: T, b: T) -> T;
5354

5455
pub fn simd_fmin<T>(a: T, b: T) -> T;
@@ -57,3 +58,10 @@ extern "platform-intrinsic" {
5758
pub fn simd_fsqrt<T>(a: T) -> T;
5859
pub fn simd_fma<T>(a: T, b: T, c: T) -> T;
5960
}
61+
62+
// incorrect, but compiles until the bootstrap compiler is updated
63+
#[cfg(stage0)]
64+
pub fn simd_select_bitmask<M, T>(m: M, a: T, b: T) -> T {
65+
drop((m, b));
66+
a
67+
}

0 commit comments

Comments
 (0)