Auto merge of #88128 - cuviper:needs-asm-support, r=Mark-Simulacrum
Add needs-asm-support to more tests These were found as test failures on s390x for RHEL and Fedora.
This commit is contained in:
commit
b6e334d873
7 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
||||||
// Checks that naked functions are never inlined.
|
// Checks that naked functions are never inlined.
|
||||||
// compile-flags: -O -Zmir-opt-level=3
|
// compile-flags: -O -Zmir-opt-level=3
|
||||||
|
// needs-asm-support
|
||||||
// ignore-wasm32
|
// ignore-wasm32
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// needs-asm-support
|
||||||
|
|
||||||
global_asm!(""); //~ ERROR `global_asm!` is not stable
|
global_asm!(""); //~ ERROR `global_asm!` is not stable
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0658]: use of unstable library feature 'global_asm': `global_asm!` is not stable enough for use and is subject to change
|
error[E0658]: use of unstable library feature 'global_asm': `global_asm!` is not stable enough for use and is subject to change
|
||||||
--> $DIR/feature-gate-global_asm.rs:1:1
|
--> $DIR/feature-gate-global_asm.rs:3:1
|
||||||
|
|
|
|
||||||
LL | global_asm!("");
|
LL | global_asm!("");
|
||||||
| ^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// ignore-emscripten no llvm_asm! support
|
// needs-asm-support
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// build-pass (FIXME(62277): could be check-pass?)
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
||||||
--> $DIR/inline_asm.rs:9:5
|
--> $DIR/inline_asm.rs:10:5
|
||||||
|
|
|
|
||||||
LL | asm!("nop");
|
LL | asm!("nop");
|
||||||
| ^^^^^^^^^^^^ use of inline assembly
|
| ^^^^^^^^^^^^ use of inline assembly
|
||||||
|
@ -7,7 +7,7 @@ LL | asm!("nop");
|
||||||
= note: inline assembly is entirely unchecked and can cause undefined behavior
|
= note: inline assembly is entirely unchecked and can cause undefined behavior
|
||||||
|
|
||||||
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
||||||
--> $DIR/inline_asm.rs:10:5
|
--> $DIR/inline_asm.rs:11:5
|
||||||
|
|
|
|
||||||
LL | llvm_asm!("nop");
|
LL | llvm_asm!("nop");
|
||||||
| ^^^^^^^^^^^^^^^^^ use of inline assembly
|
| ^^^^^^^^^^^^^^^^^ use of inline assembly
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// revisions: mir thir
|
// revisions: mir thir
|
||||||
// [thir]compile-flags: -Z thir-unsafeck
|
// [thir]compile-flags: -Z thir-unsafeck
|
||||||
|
// needs-asm-support
|
||||||
|
|
||||||
#![feature(llvm_asm)]
|
#![feature(llvm_asm)]
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
||||||
--> $DIR/inline_asm.rs:9:5
|
--> $DIR/inline_asm.rs:10:5
|
||||||
|
|
|
|
||||||
LL | asm!("nop");
|
LL | asm!("nop");
|
||||||
| ^^^^^^^^^^^^ use of inline assembly
|
| ^^^^^^^^^^^^ use of inline assembly
|
||||||
|
@ -7,7 +7,7 @@ LL | asm!("nop");
|
||||||
= note: inline assembly is entirely unchecked and can cause undefined behavior
|
= note: inline assembly is entirely unchecked and can cause undefined behavior
|
||||||
|
|
||||||
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
|
||||||
--> $DIR/inline_asm.rs:10:5
|
--> $DIR/inline_asm.rs:11:5
|
||||||
|
|
|
|
||||||
LL | llvm_asm!("nop");
|
LL | llvm_asm!("nop");
|
||||||
| ^^^^^^^^^^^^^^^^^ use of inline assembly
|
| ^^^^^^^^^^^^^^^^^ use of inline assembly
|
||||||
|
|
Loading…
Add table
Reference in a new issue