Skip to content

Fix LoongArch ld/st instructions register info#2701

Merged
kabeor merged 1 commit into
capstone-engine:nextfrom
jiegec:next
May 20, 2025
Merged

Fix LoongArch ld/st instructions register info#2701
kabeor merged 1 commit into
capstone-engine:nextfrom
jiegec:next

Conversation

@jiegec

@jiegec jiegec commented May 15, 2025

Copy link
Copy Markdown
Collaborator

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

According to #2700, the register info of LoongArch ld/st instructions is wrong. A fix for the issue is proposed for llvm-capstone at capstone-engine/llvm-capstone#79. This commit integrates the fix and regenerates the tables via ASUpdater -a LoongArch -w -s IncGen. The case change in LoongArchGenCSOpGroup.inc is also handled.

Test plan

Tested via ./build/suite/cstest/cstest tests/details/loongarch.yaml

Closing issues

Fixes: #2700

Comment thread tests/details/loongarch.yaml
jiegec added a commit to jiegec/capstone that referenced this pull request May 16, 2025
Access type validation is added to tests/details/loongarch.yaml to
strengthen the new tests introduced in pull request capstone-engine#2701.
@jiegec jiegec requested a review from Rot127 May 16, 2025 15:22
@kabeor

kabeor commented May 20, 2025

Copy link
Copy Markdown
Member

@jiegec Can you plz solve the conflict in yaml so I can merge? thx:)

According to capstone-engine#2700, the register info of LoongArch ld/st instructions is
wrong. A fix for the issue is proposed for llvm-capstone at
capstone-engine/llvm-capstone#79. This commit integrates the fix and
regenerates the tables via `ASUpdater -a LoongArch -w -s IncGen`. The
case change in LoongArchGenCSOpGroup.inc is also handled.

Fixes: capstone-engine#2700
@jiegec

jiegec commented May 20, 2025

Copy link
Copy Markdown
Collaborator Author

@jiegec Can you plz solve the conflict in yaml so I can merge? thx:)

Done.

@kabeor kabeor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, merged.

@kabeor kabeor merged commit f2f0a3c into capstone-engine:next May 20, 2025
20 checks passed
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.

Loongarch ld instructions have incorrect registers modified

3 participants