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

[WIP] DMD inline asm: allow labels as generic operands #1014

Merged
merged 1 commit into from
Aug 7, 2015

Conversation

kinke
Copy link
Member

@kinke kinke commented Aug 2, 2015

compilable/iasm_labeloperand.d is the last official 2.067 issue (edit: okay, there's still shared libs and rt.util.typeinfo-debug) on Linux x64 after David's latest commits. 👍 It uses labels as source operands for mov instructions, which is currently not supported.

This commit checks whether an identifier operand is a function label, for all instructions and not just those explicitly supporting labels (opTakesLabel()). If the instruction doesn't take labels directly, the operands yield the label's address. Not sure whether this is all it takes, but we have the first green 2.067 builds at last! :)

dnadlinger added a commit that referenced this pull request Aug 7, 2015
[WIP] DMD inline asm: allow labels as generic operands
@dnadlinger dnadlinger merged commit 26b9485 into merge-2.067 Aug 7, 2015
@dnadlinger dnadlinger deleted the asmLabel branch August 7, 2015 08:15
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