Skip to content

Conversation

@jiegec
Copy link
Collaborator

@jiegec jiegec commented May 15, 2025

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

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
Copy link
Member

kabeor commented May 20, 2025

@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
Copy link
Collaborator Author

jiegec commented May 20, 2025

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

Done.

Copy link
Member

@kabeor kabeor left a comment

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