Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add llvm.minnum.f(32|64) and llvm.maxnum.f(32|64) intrinsics #5978

Merged
merged 1 commit into from
Jan 5, 2018

Conversation

varkor
Copy link
Contributor

@varkor varkor commented Dec 23, 2017

This fixes #5976. I’m using #4353 as a model.

varkor added a commit to varkor/emscripten-fastcomp that referenced this pull request Dec 23, 2017
The corresponding change to Emscripten is this PR:
emscripten-core/emscripten#5978, and relates to this
issue: emscripten-core/emscripten#5976. I’m using
emscripten-core#143 as a model.
@varkor varkor force-pushed the minnum-maxnum-intrinsics branch from 50554a2 to 6248783 Compare December 23, 2017 23:54
@@ -1582,6 +1582,10 @@ LibraryManager.library = {
llvm_floor_f64: 'Math_floor',
llvm_round_f32: 'Math_round',
llvm_round_f64: 'Math_round',
llvm_minnum_f32: 'Math_min',
llvm_minnum_f64: 'Math_min',
llvm_maxnum_f32: 'Math_max',
Copy link
Member

Choose a reason for hiding this comment

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

the maxnum ones seem to have already existed (line 4375). Your addition is in a better location, though, let's remove the old ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how I missed those! Updated, thanks.

@varkor varkor force-pushed the minnum-maxnum-intrinsics branch from 6248783 to 3d67088 Compare December 28, 2017 10:12
@varkor varkor force-pushed the minnum-maxnum-intrinsics branch from 19dca5d to 87ff06a Compare December 28, 2017 10:22
varkor added a commit to varkor/emscripten-fastcomp that referenced this pull request Dec 28, 2017
The corresponding change to Emscripten is this PR:
emscripten-core/emscripten#5978, and relates to this
issue: emscripten-core/emscripten#5976. I’m using
emscripten-core#143 as a model.
@kripken
Copy link
Member

kripken commented Jan 5, 2018

Great, thanks!

@kripken kripken merged commit 0682865 into emscripten-core:incoming Jan 5, 2018
kripken pushed a commit to emscripten-core/emscripten-fastcomp that referenced this pull request Jan 5, 2018
@varkor varkor deleted the minnum-maxnum-intrinsics branch January 5, 2018 18:48
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.

llvm.minnum.f(32|64) and llvm.maxnum.f(32|64) intrinsics are unimplemented
2 participants