Skip to content

#554 add more x86 instructions#2875

Merged
lerno merged 1 commit intoc3lang:masterfrom
gantsevdenis:554_add_x86_instructions
Feb 20, 2026
Merged

#554 add more x86 instructions#2875
lerno merged 1 commit intoc3lang:masterfrom
gantsevdenis:554_add_x86_instructions

Conversation

@gantsevdenis
Copy link
Copy Markdown
Contributor

refers to #554 (labeled as "Good first issue")

I was thinking: the fact that C3 uses Oracle/Solaris syntax (the "{bwlq}" suffixes at the end of some instructions) makes it hard to mechanically add support for new ones, because the suffixes may or may not be valid for a given instruction... I am wondering, why not simply using "Intel/AMD mnemonics" as they are referred to in ASM Reference ? Then we could simply process the instructions.xml linked in the issue?

@gantsevdenis gantsevdenis force-pushed the 554_add_x86_instructions branch from 6b40e58 to 763bc5f Compare January 29, 2026 19:31
@lerno
Copy link
Copy Markdown
Collaborator

lerno commented Jan 30, 2026

Mostly because of the case of the integers where the desired size of the op would need to be inferred from the register, which would need additional verification code.

@lerno
Copy link
Copy Markdown
Collaborator

lerno commented Jan 30, 2026

It would be great if it could be generated, so maybe there's a way around it?

@lerno lerno added the Additional info please Further information is requested label Feb 7, 2026
@lerno
Copy link
Copy Markdown
Collaborator

lerno commented Feb 7, 2026

Should I accept this for now and we look forward for some other way to add the rest?

@lerno
Copy link
Copy Markdown
Collaborator

lerno commented Feb 20, 2026

I'll add these for now.

@lerno lerno merged commit e1ec4b1 into c3lang:master Feb 20, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Additional info please Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants