Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/82869.rs: fixed with errors #691

Merged
merged 1 commit into from
Mar 17, 2021
Merged

ices/82869.rs: fixed with errors #691

merged 1 commit into from
Mar 17, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#82869

#![feature(asm)]

fn aarch64(a: f64, b: f64) {
    asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
        || {};
        b
    });
}
=== stdout ===
=== stderr ===
error[E0425]: cannot find value `c` in this scope
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:42
  |
4 |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |                                          ^ help: a local variable with a similar name exists: `a`

error: invalid register class `vreg`: unknown register class
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:32
  |
4 |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |                                ^^^^^^^^^^^

error: invalid register class `vreg`: unknown register class
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:45
  |
4 |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |                                             ^^^^^^^^^^

error: invalid register `d1`: unknown register
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:57
  |
4 |       asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |  _________________________________________________________^
5 | |         || {};
6 | |         b
7 | |     });
  | |_____^

error[E0601]: `main` function not found in crate `82869`
 --> /home/runner/work/glacier/glacier/ices/82869.rs:1:1
  |
1 | / #![feature(asm)]
2 | |
3 | | fn aarch64(a: f64, b: f64) {
4 | |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
... |
7 | |     });
8 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82869.rs`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0425, E0601.
For more information about an error, try `rustc --explain E0425`.
==============

=== stdout ===
=== stderr ===
error[E0425]: cannot find value `c` in this scope
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:42
  |
4 |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |                                          ^ help: a local variable with a similar name exists: `a`

error: invalid register class `vreg`: unknown register class
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:32
  |
4 |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |                                ^^^^^^^^^^^

error: invalid register class `vreg`: unknown register class
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:45
  |
4 |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |                                             ^^^^^^^^^^

error: invalid register `d1`: unknown register
 --> /home/runner/work/glacier/glacier/ices/82869.rs:4:57
  |
4 |       asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
  |  _________________________________________________________^
5 | |         || {};
6 | |         b
7 | |     });
  | |_____^

error[E0601]: `main` function not found in crate `82869`
 --> /home/runner/work/glacier/glacier/ices/82869.rs:1:1
  |
1 | / #![feature(asm)]
2 | |
3 | | fn aarch64(a: f64, b: f64) {
4 | |     asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d1") {
... |
7 | |     });
8 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82869.rs`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0425, E0601.
For more information about an error, try `rustc --explain E0425`.
==============
@JohnTitor JohnTitor merged commit 60413a4 into master Mar 17, 2021
@JohnTitor JohnTitor deleted the autofix/ices/82869.rs branch March 17, 2021 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants