Fixes failing PowerPC unit tests by bmourad01 · Pull Request #1603 · BinaryAnalysisPlatform/bap · GitHub
Skip to content

Fixes failing PowerPC unit tests#1603

Open
bmourad01 wants to merge 1 commit intoBinaryAnalysisPlatform:masterfrom
bmourad01:fix-ppc-unit-tests
Open

Fixes failing PowerPC unit tests#1603
bmourad01 wants to merge 1 commit intoBinaryAnalysisPlatform:masterfrom
bmourad01:fix-ppc-unit-tests

Conversation

@bmourad01
Copy link
Copy Markdown
Contributor

The failing tests were all related to load/store instruction encodings. It seems that they accept a sign-extended 16-bit immediate offset in these cases, and the sign extension wasn't being performed by the lifter.

@bmourad01
Copy link
Copy Markdown
Contributor Author

@gitoleg
Copy link
Copy Markdown
Contributor

gitoleg commented May 6, 2024

@bmourad01

looks reasonable! But I have no idea why we didn't see this fail before

@XVilka
Copy link
Copy Markdown
Contributor

XVilka commented Dec 14, 2024

@bmourad01 could you please update the PR to trigger CI again? The CI log expired and it's unclear what was the error.

@bmourad01
Copy link
Copy Markdown
Contributor Author

CI currently has this error for all but one of the jobs:

Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/

@bmourad01 bmourad01 force-pushed the fix-ppc-unit-tests branch from 8d68bb0 to 6258b1b Compare March 5, 2025 23:36
Also includes a fix for `ldu`. The manual says that the
immediate is sign-extended.
@bmourad01 bmourad01 force-pushed the fix-ppc-unit-tests branch from 6258b1b to 16cf14d Compare March 6, 2025 16:19
@bmourad01
Copy link
Copy Markdown
Contributor Author

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.

3 participants