Skip to content

'+' (read+write) asm outputs not supported #13392

Closed
@kmcallister

Description

@kmcallister
#[feature(asm)];

fn main() {
    unsafe {
        let x: uint = 0;
        asm!("" : "+r"(x));
    }
}
$ rustc -v
rustc 0.10-pre (68a4f7d 2014-02-24 12:42:02 -0800)
host: x86_64-unknown-linux-gnu

$ rustc foo.rs
foo.rs:6:19: 6:23 error: internal compiler error: unimplemented '+' (read+write) output operand constraint modifier
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
foo.rs:6         asm!("" : "+r"(x));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions