Improve MIPS floating-point lifting and calling conventions - #8500
Open
zznop wants to merge 5 commits into
Open
Conversation
Decode floating-point memory operands correctly and lift lwc1, swc1, ldc1, and sdc1 using the appropriate FPR representation. Model MIPS32 FR=0 doublewords as register pairs and mark odd pair roots unknown. Add lifting tests across endianness, MIPS64, and R5900.
Lift MFC1, MTC1, DMFC1, DMTC1, MFHC1, and MTHC1 directly where supported by the modeled FPR layout. Preserve known low-word dataflow for MTC1 while modeling the unpredictable upper word, handle FR=0 register pairs, and add variant lifting tests.
Implement the remaining C.cond.S, C.cond.D, and C.cond.PS predicates, including unordered comparisons, explicit FCC destinations, FR=0 double pairs, and paired-single lane results.
Add MADD.S/D lifting, use a compact intrinsic for MADD.PS, and lifting integer and floating-point MOVF/MOVT variants with correct FCC polarity. Handle FR=0 double pairs, FR=1 registers, unpredictable operand combinations, and add regression coverage.
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.
This PR includes the following:
test_lifting.py) for fixed and newly lifted instructionsCloses #4010
After/Before:
