Skip to content

Commit 93efb62

Browse files
mati865gnzlbg
authored andcommitted
Remove stage0 workarounds
1 parent 8415fd4 commit 93efb62

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

crates/core_arch/src/simd_llvm.rs

-8
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ 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))]
5352
pub fn simd_select_bitmask<M, T>(m: M, a: T, b: T) -> T;
5453

5554
pub fn simd_fmin<T>(a: T, b: T) -> T;
@@ -58,10 +57,3 @@ extern "platform-intrinsic" {
5857
pub fn simd_fsqrt<T>(a: T) -> T;
5958
pub fn simd_fma<T>(a: T, b: T, c: T) -> T;
6059
}
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-
}

crates/core_arch/src/x86/adx.rs

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub unsafe fn _addcarry_u32(c_in: u8, a: u32, b: u32, out: &mut u32) -> u8 {
3030
#[target_feature(enable = "adx")]
3131
#[cfg_attr(test, assert_instr(adc))]
3232
#[stable(feature = "simd_x86_adx", since = "1.33.0")]
33-
#[cfg(not(stage0))]
3433
pub unsafe fn _addcarryx_u32(c_in: u8, a: u32, b: u32, out: &mut u32) -> u8 {
3534
llvm_addcarryx_u32(c_in, a, b, out as *mut _ as *mut u8)
3635
}

crates/core_arch/src/x86_64/adx.rs

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub unsafe fn _addcarry_u64(c_in: u8, a: u64, b: u64, out: &mut u64) -> u8 {
3030
#[target_feature(enable = "adx")]
3131
#[cfg_attr(test, assert_instr(adc))]
3232
#[stable(feature = "simd_x86_adx", since = "1.33.0")]
33-
#[cfg(not(stage0))]
3433
pub unsafe fn _addcarryx_u64(c_in: u8, a: u64, b: u64, out: &mut u64) -> u8 {
3534
llvm_addcarryx_u64(c_in, a, b, out as *mut _ as *mut u8)
3635
}

crates/core_arch/src/x86_64/cmpxchg16b.rs

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ use stdsimd_test::assert_instr;
4242
#[inline]
4343
#[cfg_attr(test, assert_instr(cmpxchg16b, success = Ordering::SeqCst, failure = Ordering::SeqCst))]
4444
#[target_feature(enable = "cmpxchg16b")]
45-
#[cfg(not(stage0))]
4645
pub unsafe fn cmpxchg16b(
4746
dst: *mut u128,
4847
old: u128,

0 commit comments

Comments
 (0)