Skip to content

Commit b7ce29e

Browse files

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/codegen_f16_f128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub(crate) fn fcmp(fx: &mut FunctionCx<'_, '_, '_>, cc: FloatCC, lhs: Value, rhs
7373
// FIXME(rust-lang/compiler-builtins#919): This should be `I64` on non-AArch64
7474
// architectures, but switching it before compiler-builtins is fixed causes test
7575
// failures.
76-
vec![AbiParam::new(types::I32)],
76+
vec![AbiParam::new(types::I64)],
7777
&[lhs, rhs],
7878
)[0];
7979
let zero = fx.bcx.ins().iconst(types::I32, 0);

src/compiler_builtins.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ builtin_functions! {
8787
fn fmod(a: f64, b: f64) -> f64;
8888
fn fmodf128(a: f128, b: f128) -> f128;
8989
// float comparison
90-
fn __eqtf2(a: f128, b: f128) -> i32;
91-
fn __netf2(a: f128, b: f128) -> i32;
92-
fn __lttf2(a: f128, b: f128) -> i32;
93-
fn __letf2(a: f128, b: f128) -> i32;
94-
fn __gttf2(a: f128, b: f128) -> i32;
95-
fn __getf2(a: f128, b: f128) -> i32;
90+
fn __eqtf2(a: f128, b: f128) -> i64;
91+
fn __netf2(a: f128, b: f128) -> i64;
92+
fn __lttf2(a: f128, b: f128) -> i64;
93+
fn __letf2(a: f128, b: f128) -> i64;
94+
fn __gttf2(a: f128, b: f128) -> i64;
95+
fn __getf2(a: f128, b: f128) -> i64;
9696
fn fminimumf128(a: f128, b: f128) -> f128;
9797
fn fmaximumf128(a: f128, b: f128) -> f128;
9898
// Cranelift float libcalls

0 commit comments

Comments
 (0)