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

[Core/GPU] Fixed condition blocks where result always true #19040

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

GermanAizek
Copy link
Contributor

No description provided.

@@ -477,7 +477,7 @@ static void DataProcessingRegister(uint32_t w, uint64_t addr, Instruction *instr
int imm3 = (w >> 10) & 0x7;
if (Rd == 31 && sub && S) {
// It's a CMP
snprintf(instr->text, sizeof(instr->text), "%s%s %c%d, %c%d, %s", "cmp", S ? "s" : "", r, Rn, r, Rm, extendnames[option]);
Copy link
Collaborator

@anr2me anr2me Apr 11, 2024

Choose a reason for hiding this comment

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

just wondering, how did a conditional S became a constant "s"?
Since w is a type of uint32_t that came from argument and bool S = (w >> 29) & 1; Which part of the code causing S to have a fixed/constant value of true?

Edit: oops sorry, it was the entry condition where S need to be true to reach this part of the code

@GermanAizek
Copy link
Contributor Author

This PR is waiting for actions.

@hrydgard hrydgard added this to the v1.18.0 milestone Sep 17, 2024
@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Sep 17, 2024
@hrydgard hrydgard merged commit 635ff79 into hrydgard:master Sep 17, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants