Skip to content

Fix LoongArch BREAK instruction encoding - #3917

Merged
baldurk merged 1 commit into
baldurk:v1.xfrom
stdmnpkg:loongarch-break-encoding
Oct 5, 2026
Merged

baldurk merged 1 commit into
baldurk:v1.xfrom
stdmnpkg:loongarch-break-encoding

Conversation

@stdmnpkg

@stdmnpkg stdmnpkg commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Description

0x150000ULL is actually OR instruction.

LoongArch Reference Manual Vol.1 Appendix B(en, zh) list instruction encoding in binary and noted:

0x0015 = 0b0000_0000_0001_0101
0x002a = 0b0000_0000_0010_1010

it looks like counted wrong number of leading zeros during manually binary to hex conversion

see also:

@baldurk

baldurk commented Oct 5, 2026

Copy link
Copy Markdown
Owner

These unsupported architectures are not tested or maintained in any way so it's entirely subject to whatever PRs are submitted without any checking of platform specific functionality. Any changes that only affect those paths will be accepted blindly because it is obviously not realistic for me to check e.g. whether this change is correct or not.

@baldurk
baldurk merged commit 662623d into baldurk:v1.x Oct 5, 2026
20 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants