Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong asm doc for instructions with multiple documentation pages #1026

Open
phuclv90 opened this issue Aug 1, 2018 · 1 comment
Open

Wrong asm doc for instructions with multiple documentation pages #1026

phuclv90 opened this issue Aug 1, 2018 · 1 comment

Comments

@phuclv90
Copy link
Contributor

phuclv90 commented Aug 1, 2018

There are multiple mov mnemonics in the Intel syntax, so looking only at the mnemonics is not enough

When adding suffixes the AT&T syntax is even more ambiguous since there are Intel instructions with q suffix in the mnemonic

Here's the demo code. The AT&T asm doc always shows the vector version of MOVQ even though the instruction only acts on GPRs like movq %rsp, %rbp. On the Intel side CE can't recognize MOVs to/from control and debug registers

Other examples:

For other cases like MOVSQ or CMPSQ we're lucky since dropping the suffix we still arrive at the same document page

@mattgodbolt
Copy link
Member

As per the other ASM bugs, this is due to the way we parse Intel's documentation. Any help welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants