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

passing number literal to inline assembly causes compiler crash #728

Closed
andrewrk opened this issue Jan 29, 2018 · 1 comment
Closed

passing number literal to inline assembly causes compiler crash #728

andrewrk opened this issue Jan 29, 2018 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@andrewrk
Copy link
Member

    const x = asm volatile ("syscall"
        : [ret] "={rax}" (-> usize)
        : [number] "{rax}" (1234)
        : "rcx", "r11");

see also #215

@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Jan 29, 2018
@andrewrk andrewrk added this to the 0.3.0 milestone Jan 29, 2018
@andrewrk andrewrk modified the milestones: 0.3.0, 0.4.0 Feb 28, 2018
@Sahnvour
Copy link
Contributor

Sahnvour commented Mar 2, 2019

I think this can be closed since #1756.

@andrewrk andrewrk closed this as completed Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants