Skip to content

Commit

Permalink
fix ppc config
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed May 23, 2024
1 parent 1ce52c5 commit d70dd59
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions testcrate/benches/float_conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ float_bench! {

/* float -> unsigned int */

#[cfg(not(all(target_arch = "powerpc64", target_endian = "little")))]
float_bench! {
name: conv_f32_u32,
sig: (a: f32) -> u32,
Expand All @@ -314,7 +315,6 @@ float_bench! {
],
}

#[cfg(not(all(target_arch = "powerpc64", target_endian = "little")))]
float_bench! {
name: conv_f32_u64,
sig: (a: f32) -> u64,
Expand Down Expand Up @@ -500,7 +500,6 @@ float_bench! {
asm: []
}

#[cfg(not(all(target_arch = "powerpc64", target_endian = "little")))]
criterion_group!(
float_conv,
conv_u32_f32,
Expand All @@ -515,7 +514,6 @@ criterion_group!(
conv_i64_f64,
conv_i128_f32,
conv_i128_f64,
conv_f32_u32,
conv_f32_u64,
conv_f32_u128,
conv_f32_i32,
Expand All @@ -531,32 +529,11 @@ criterion_group!(

// FIXME: ppc64le has a sporadic overflow panic in the crate functions
// <https://github.com/rust-lang/compiler-builtins/issues/617#issuecomment-2125914639>
#[cfg(all(target_arch = "powerpc64", target_endian = "little"))]
criterion_group!(
float_conv,
conv_u32_f32,
conv_u32_f64,
conv_u64_f32,
conv_u64_f64,
conv_u128_f32,
conv_u128_f64,
conv_i32_f32,
conv_i32_f64,
conv_i64_f32,
conv_i64_f64,
conv_i128_f32,
conv_i128_f64,
conv_f32_u64,
conv_f32_u128,
conv_f32_i32,
conv_f32_i64,
conv_f32_i128,
conv_f64_u32,
conv_f64_u64,
conv_f64_u128,
conv_f64_i32,
conv_f64_i64,
conv_f64_i128,
);
#[cfg(not(all(target_arch = "powerpc64", target_endian = "little")))]
criterion_group!(float_conv_not_ppc64le, conv_f32_u32);

#[cfg(all(target_arch = "powerpc64", target_endian = "little"))]
criterion_main!(float_conv);

#[cfg(not(all(target_arch = "powerpc64", target_endian = "little")))]
criterion_main!(float_conv, float_conv_not_ppc64le);

0 comments on commit d70dd59

Please sign in to comment.