Skip to content

ICE while using inline assembly #36907

Closed
Closed
@sethdusek

Description

@sethdusek

So I was messing around with the inline assembler, when I ran into an ICE

Code: https://gist.github.com/9dfeeb4d7cda8aeb1d25c7ea89ee277e

   Compiling asmswitch v0.1.0 (file:///home/kamal/rust/asmswitch)
     Running `rustc src/main.rs --crate-name asmswitch --crate-type bin -g -C metadata=71a43ba090afc09b --out-dir /home/kamal/rust/asmswitch/target/debug --emit=dep-info,link -L dependency=/home/kamal/rust/asmswitch/target/debug/deps`
error: Could not compile `asmswitch`.

Caused by:
  process didn't exit successfully: `rustc src/main.rs --crate-name asmswitch --crate-type bin -g -C metadata=71a43ba090afc09b --out-dir /home/kamal/rust/asmswitch/target/debug --emit=dep-info,link -L dependency=/home/kamal/rust/asmswitch/target/debug/deps` (exit code: 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-inline-assemblyArea: Inline assembly (`asm!(…)`)C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions