Skip to content

Added more semantics#2

Open
brunph wants to merge 2 commits into
LLVMParty:masterfrom
brunph:more-operations
Open

Added more semantics#2
brunph wants to merge 2 commits into
LLVMParty:masterfrom
brunph:more-operations

Conversation

@brunph

@brunph brunph commented Jun 7, 2026

Copy link
Copy Markdown

was playing around with the project and noticed it didn't have support for these semantics

Comment thread src/striga/x86/data.py Outdated
Comment thread src/striga/x86/data.py Outdated
def bswap(sem: Semantics):
value = sem.op_read(0)
width = value.type.int_width
assert width in (32, 64)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This isn't correct for bswap ax iirc, which is an anti-emulation trick.

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.

2 participants