Skip to content

Using float version library routine for XIP#1846

Merged
wenyongh merged 1 commit intobytecodealliance:mainfrom
no1wudi:float
Dec 29, 2022
Merged

Using float version library routine for XIP#1846
wenyongh merged 1 commit intobytecodealliance:mainfrom
no1wudi:float

Conversation

@no1wudi
Copy link
Copy Markdown
Collaborator

@no1wudi no1wudi commented Dec 29, 2022

No description provided.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
return b;
else
return (float32)fmin(a, b);
return fminf(a, b);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very sure whether the original implementations of aot_intrinsic_fmin_f32/f64 and aot_intrinsic_fmax_f32/f64 are correct, here codes of aot_intrinsic_fmin_f32 and aot_intrinsic_fmin_f64 are inconsistent. Developer ever reported error for the implementation of interpreter:
#1728
And now we have changed them to:
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/core/iwasm/interpreter/wasm_interp_classic.c#L138-L180

Suggest to use the same implementations of interpreter for aot_intrinsic_fmin_f32/f64 and aot_intrinsic_fmax_f32/f64.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, current implementations can't pass the spec test, I had fixed it but not submitted yet.
I prefer to split these fixes to small patch to simplify patch management (a patch only do one thing).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so let's merge this PR first.

@wenyongh wenyongh merged commit 6c7ca90 into bytecodealliance:main Dec 29, 2022
NingW101 pushed a commit to NingW101/wasm-micro-runtime that referenced this pull request Jan 11, 2023
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants