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

[wasm] eqz, copysign, trunc, and nearest #797

Merged
merged 1 commit into from
May 16, 2016

Conversation

commonlisp
Copy link
Collaborator

This PR covers interpreter & codegen for eqz and copysign and interpreter support for trunc and nearest with codegen forthcoming.

@msftclas
Copy link

Hi @commonlisp, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@@ -743,6 +742,11 @@ MACRO_BACKEND_ONLY( SlotArrayCheck, Empty, OpCanCSE)
MACRO_BACKEND_ONLY( FrameDisplayCheck, Empty, OpCanCSE)
MACRO_EXTEND( BeginBodyScope, Empty, OpSideEffect)

MACRO_BACKEND_ONLY(Copysign_A, Empty, OpInlinableBuiltIn | OpTempNumberSources | OpCanCSE | OpProducesNumber)
MACRO_BACKEND_ONLY(Trunc_A, Empty, OpInlinableBuiltIn | OpTempNumberSources | OpCanCSE | OpProducesNumber)
MACRO_BACKEND_ONLY(Nearest_A, Empty, OpInlinableBuiltIn | OpTempNumberSources | OpCanCSE | OpProducesNumber)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't believe we need the OpInlinableBuiltIn flag

@commonlisp commonlisp force-pushed the wasm_operators branch 4 times, most recently from c16577e to d6efe54 Compare April 15, 2016 20:26
- Implemented interpreter support for eqz, copysign, trunc, and nearest
- Implemented codegen for eqz and copysign
- Updated SExprParser generated files
- Added tests and trunc and nearest fp ops
- F64 constant space and fix
- Moved ops from AsmjsMath to WasmMath
- Corrected compile-flags in tests and propagating opcodes through
- Punting on NaN sign canonicalization
- Adding dblextended prefix since overrunning extended prefix
@commonlisp
Copy link
Collaborator Author

@dotnet-bot please test this

@commonlisp commonlisp closed this Apr 16, 2016
@commonlisp commonlisp reopened this Apr 16, 2016
@msftclas
Copy link

Hi @commonlisp, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@@ -27,6 +27,7 @@
$(IntDir);
%(AdditionalIncludeDirectories);
</AdditionalIncludeDirectories>
<PreprocessToFile Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</PreprocessToFile>
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this doing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, good catch. This was left over when I was hunting down extended prefix exhaustion.

@MikeHolman
Copy link
Contributor

lgtm

commonlisp added a commit to commonlisp/ChakraCore that referenced this pull request May 14, 2016
Merge pull request chakra-core#797 from commonlisp:wasm_operators
This PR covers interpreter & codegen for eqz and copysign and interpreter support for trunc and nearest with codegen forthcoming.
@MikeHolman MikeHolman merged commit 6c72715 into chakra-core:WebAssembly May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants