rust/tests/ui/asm/aarch64/bad-options.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
3.1 KiB
Plaintext
Raw Normal View History

2020-02-20 09:19:48 +00:00
error: the `nomem` and `readonly` options are mutually exclusive
--> $DIR/bad-options.rs:8:18
|
LL | asm!("", options(nomem, readonly));
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: the `pure` and `noreturn` options are mutually exclusive
--> $DIR/bad-options.rs:10:18
|
LL | asm!("", options(pure, nomem, noreturn));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: asm with the `pure` option must have at least one output
2020-02-20 09:19:48 +00:00
--> $DIR/bad-options.rs:10:18
|
LL | asm!("", options(pure, nomem, noreturn));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: asm with the `pure` option must have at least one output
2020-02-20 09:19:48 +00:00
--> $DIR/bad-options.rs:13:33
|
LL | asm!("{}", in(reg) foo, options(pure, nomem));
| ^^^^^^^^^^^^^^^^^^^^
error: asm outputs are not allowed with the `noreturn` option
--> $DIR/bad-options.rs:15:20
|
LL | asm!("{}", out(reg) foo, options(noreturn));
| ^^^^^^^^^^^^
2021-07-29 13:43:26 +02:00
error: asm with `clobber_abi` must specify explicit registers for outputs
--> $DIR/bad-options.rs:22:20
|
LL | asm!("{}", out(reg) foo, clobber_abi("C"));
| ^^^^^^^^^^^^ ---------------- clobber_abi
| |
| generic outputs
2024-07-27 19:08:00 +02:00
error: the `nomem` option cannot be used with `global_asm!`
2021-07-29 13:43:26 +02:00
--> $DIR/bad-options.rs:28:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(nomem));
2024-07-27 19:08:00 +02:00
| ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2024-07-27 19:08:00 +02:00
error: the `readonly` option cannot be used with `global_asm!`
2021-07-29 13:43:26 +02:00
--> $DIR/bad-options.rs:30:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(readonly));
2024-07-27 19:08:00 +02:00
| ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2024-07-27 19:08:00 +02:00
error: the `noreturn` option cannot be used with `global_asm!`
2021-07-29 13:43:26 +02:00
--> $DIR/bad-options.rs:32:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(noreturn));
2024-07-27 19:08:00 +02:00
| ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2024-07-27 19:08:00 +02:00
error: the `pure` option cannot be used with `global_asm!`
2021-07-29 13:43:26 +02:00
--> $DIR/bad-options.rs:34:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(pure));
2024-07-27 19:08:00 +02:00
| ^^^^ the `pure` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2024-07-27 19:08:00 +02:00
error: the `nostack` option cannot be used with `global_asm!`
2021-07-29 13:43:26 +02:00
--> $DIR/bad-options.rs:36:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(nostack));
2024-07-27 19:08:00 +02:00
| ^^^^^^^ the `nostack` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2024-07-27 19:08:00 +02:00
error: the `preserves_flags` option cannot be used with `global_asm!`
2021-07-29 13:43:26 +02:00
--> $DIR/bad-options.rs:38:25
2021-04-13 18:11:11 +01:00
|
LL | global_asm!("", options(preserves_flags));
2024-07-27 19:08:00 +02:00
| ^^^^^^^^^^^^^^^ the `preserves_flags` option is not meaningful for global-scoped inline assembly
2021-04-13 18:11:11 +01:00
2021-07-29 13:43:26 +02:00
error: invalid ABI for `clobber_abi`
--> $DIR/bad-options.rs:20:18
|
LL | asm!("", clobber_abi("foo"));
| ^^^^^^^^^^^^^^^^^^
|
= note: the following ABIs are supported on this target: `C`, `system`, `efiapi`
2021-07-29 13:43:26 +02:00
error: aborting due to 13 previous errors
2020-02-20 09:19:48 +00:00