Implemented RV64F extension.#18
Draft
doushe821 wants to merge 8 commits into
Draft
Conversation
TODO: 1. softfloat lib integration 2. Emition 3. Tests That's it
Also improved builder and encoding. Also integration of softfloat is questionable and I might have to look for better solution. TODO: 1. Finish builder 2. Implement Emitter. 3. Test. Optional: search for better building method. Current one is ugly, but it might be the optimal one, since softfloat doesn't provide cmake for some reason.
DONE: 1. Extra encoding formats needed for RV64F instructions. 2. Added some helper functions in scope.rb and cpp_gen.rb 3. Added emition of RV64F instrs. TODO: 1. Need to fix types for floating point temporaries. 2. Write tests. 3. Might need to refactor dsl implementation of this extension. Most methods can be generalized by adding their size as an attribute. It goes even further for Conversion instructions, because they all can be merged into one isntruction with 4 attributes. But this might become tidious in debug phase, so in my opinion, tests first, and then this changes.
Safety commit
TODO: 1. Do neg correctly. 2. Add rounding mode everywhere, for that I also need to change cpu_state emitter a bit. 3. Move most fp-relateed functions in separate module of emitter. 4. Tests.
…ions, added NaN checks that do not use isNaN from softfloat.
Also fixed a small bug in decorder, also started to write proposals (getting ready for mr)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation of RV64F extension in Protea DSL (unit tests included). Some changes in ADL files to fix possible bugs and make rv64F integration possible. More detailed info will be provided in proposal comments
Draft pull request to see all the differences and be able to write proposals faster.