Re-Annotate the tests with needs-llvm-components
Doesn't work though, because compiletest doesn't process ignores on a per-revision manner.
This commit is contained in:
parent
a8e6a2cd9e
commit
493fe8008b
26 changed files with 61 additions and 24 deletions
|
@ -2,8 +2,9 @@
|
||||||
// revisions: mips32 mips64
|
// revisions: mips32 mips64
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
//[mips32] compile-flags: --target mips-unknown-linux-gnu
|
//[mips32] compile-flags: --target mips-unknown-linux-gnu
|
||||||
|
//[mips32] needs-llvm-components: mips
|
||||||
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
|
//[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
|
||||||
// needs-llvm-components: mips
|
//[mips64] needs-llvm-components: mips
|
||||||
|
|
||||||
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
|
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
// revisions: powerpc powerpc64
|
// revisions: powerpc powerpc64
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
//[powerpc] compile-flags: --target powerpc-unknown-linux-gnu
|
//[powerpc] compile-flags: --target powerpc-unknown-linux-gnu
|
||||||
|
//[powerpc] needs-llvm-components: powerpc
|
||||||
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
|
//[powerpc64] compile-flags: --target powerpc64-unknown-linux-gnu
|
||||||
// needs-llvm-components: powerpc
|
//[powerpc64] needs-llvm-components: powerpc
|
||||||
|
|
||||||
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
|
#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
// revisions: riscv64 riscv32
|
// revisions: riscv64 riscv32
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
//[riscv64] compile-flags: --target riscv64imac-unknown-none-elf
|
//[riscv64] compile-flags: --target riscv64imac-unknown-none-elf
|
||||||
|
//[riscv64] needs-llvm-components: riscv
|
||||||
//[riscv32] compile-flags: --target riscv32imac-unknown-none-elf
|
//[riscv32] compile-flags: --target riscv32imac-unknown-none-elf
|
||||||
|
//[riscv32] needs-llvm-components: riscv
|
||||||
// compile-flags: -C target-feature=+d
|
// compile-flags: -C target-feature=+d
|
||||||
// needs-llvm-components: riscv
|
|
||||||
// min-system-llvm-version: 12.0
|
// min-system-llvm-version: 12.0
|
||||||
|
|
||||||
#![feature(no_core, lang_items, rustc_attrs)]
|
#![feature(no_core, lang_items, rustc_attrs)]
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
|
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
|
||||||
|
//[x86_64] needs-llvm-components: x86
|
||||||
//[i686] compile-flags: --target i686-unknown-linux-gnu
|
//[i686] compile-flags: --target i686-unknown-linux-gnu
|
||||||
|
//[i686] needs-llvm-components: x86
|
||||||
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
|
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
|
||||||
// compile-flags: -C target-feature=+avx512bw
|
// compile-flags: -C target-feature=+avx512bw
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
// revisions: x86_64 i686
|
// revisions: x86_64 i686
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
|
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
|
||||||
|
//[x86_64] needs-llvm-components: x86
|
||||||
//[i686] compile-flags: --target i686-unknown-linux-gnu
|
//[i686] compile-flags: --target i686-unknown-linux-gnu
|
||||||
|
//[i686] needs-llvm-components: x86
|
||||||
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
|
// compile-flags: -C llvm-args=--x86-asm-syntax=intel
|
||||||
// compile-flags: -C target-feature=+avx512bw
|
// compile-flags: -C target-feature=+avx512bw
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
// min-llvm-version: 12.0.0
|
// min-llvm-version: 12.0.0
|
||||||
// needs-llvm-components: aarch64 x86 powerpc
|
|
||||||
// revisions: x64 A64 ppc64le
|
// revisions: x64 A64 ppc64le
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
// [x64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=static
|
// [x64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=static
|
||||||
|
// [x64] needs-llvm-components: x86
|
||||||
// [A64] compile-flags: --target aarch64-unknown-linux-gnu -Crelocation-model=static
|
// [A64] compile-flags: --target aarch64-unknown-linux-gnu -Crelocation-model=static
|
||||||
|
// [A64] needs-llvm-components: aarch64
|
||||||
// [ppc64le] compile-flags: --target powerpc64le-unknown-linux-gnu -Crelocation-model=static
|
// [ppc64le] compile-flags: --target powerpc64le-unknown-linux-gnu -Crelocation-model=static
|
||||||
|
// [ppc64le] needs-llvm-components: powerpc
|
||||||
|
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
// Checks if the correct annotation for the efiapi ABI is passed to llvm.
|
// Checks if the correct annotation for the efiapi ABI is passed to llvm.
|
||||||
|
|
||||||
// revisions:x86_64 i686 aarch64 arm riscv
|
// revisions:x86_64 i686 aarch64 arm riscv
|
||||||
// needs-llvm-components: aarch64 arm riscv
|
|
||||||
|
|
||||||
//[x86_64] compile-flags: --target x86_64-unknown-uefi
|
//[x86_64] compile-flags: --target x86_64-unknown-uefi
|
||||||
|
//[x86_64] needs-llvm-components: aarch64 arm riscv
|
||||||
//[i686] compile-flags: --target i686-unknown-linux-musl
|
//[i686] compile-flags: --target i686-unknown-linux-musl
|
||||||
|
//[i686] needs-llvm-components: aarch64 arm riscv
|
||||||
//[aarch64] compile-flags: --target aarch64-unknown-none
|
//[aarch64] compile-flags: --target aarch64-unknown-none
|
||||||
|
//[aarch64] needs-llvm-components: aarch64 arm riscv
|
||||||
//[arm] compile-flags: --target armv7r-none-eabi
|
//[arm] compile-flags: --target armv7r-none-eabi
|
||||||
|
//[arm] needs-llvm-components: aarch64 arm riscv
|
||||||
//[riscv] compile-flags: --target riscv64gc-unknown-none-elf
|
//[riscv] compile-flags: --target riscv64gc-unknown-none-elf
|
||||||
|
//[riscv] needs-llvm-components: aarch64 arm riscv
|
||||||
// compile-flags: -C no-prepopulate-passes
|
// compile-flags: -C no-prepopulate-passes
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// FIXME(nagisa): remove the flags here once all targets support `asm!`.
|
// FIXME(nagisa): remove the flags below once all targets support `asm!`.
|
||||||
// compile-flags: --target x86_64-unknown-linux-gnu
|
// compile-flags: --target x86_64-unknown-linux-gnu
|
||||||
|
// needs-llvm-components: x86
|
||||||
|
|
||||||
// Verify we sanitize the special tokens for the LLVM inline-assembly, ensuring people won't
|
// Verify we sanitize the special tokens for the LLVM inline-assembly, ensuring people won't
|
||||||
// inadvertently rely on the LLVM-specific syntax and features.
|
// inadvertently rely on the LLVM-specific syntax and features.
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
// revisions: WINDOWS ANDROID
|
// revisions: WINDOWS ANDROID
|
||||||
// needs-llvm-components: x86 arm
|
|
||||||
// compile-flags: -C panic=abort
|
// compile-flags: -C panic=abort
|
||||||
// [WINDOWS] compile-flags: --target=x86_64-pc-windows-msvc
|
// [WINDOWS] compile-flags: --target=x86_64-pc-windows-msvc
|
||||||
|
// [WINDOWS] needs-llvm-components: x86
|
||||||
// [ANDROID] compile-flags: --target=armv7-linux-androideabi
|
// [ANDROID] compile-flags: --target=armv7-linux-androideabi
|
||||||
|
// [ANDROID] needs-llvm-components: arm
|
||||||
|
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// See issue #60235.
|
// See issue #60235.
|
||||||
|
|
||||||
// compile-flags: -O --target=i686-apple-darwin --crate-type=rlib
|
// compile-flags: -O --target=i686-apple-darwin --crate-type=rlib
|
||||||
|
// needs-llvm-components: x86
|
||||||
// rustc-env:MACOSX_DEPLOYMENT_TARGET=10.9
|
// rustc-env:MACOSX_DEPLOYMENT_TARGET=10.9
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// See issue #60235.
|
// See issue #60235.
|
||||||
|
|
||||||
// compile-flags: -O --target=i686-apple-darwin --crate-type=rlib
|
// compile-flags: -O --target=i686-apple-darwin --crate-type=rlib
|
||||||
|
// needs-llvm-components: x86
|
||||||
// unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
|
// unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
//
|
|
||||||
// Checks that we correctly codegen extern "C" functions returning structs.
|
// Checks that we correctly codegen extern "C" functions returning structs.
|
||||||
// See issue #52638.
|
// See issue #52638.
|
||||||
|
|
||||||
// only-sparc64
|
|
||||||
// compile-flags: -O --target=sparc64-unknown-linux-gnu --crate-type=rlib
|
// compile-flags: -O --target=sparc64-unknown-linux-gnu --crate-type=rlib
|
||||||
|
// needs-llvm-components: sparc
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// See issue #60235.
|
// See issue #60235.
|
||||||
|
|
||||||
// compile-flags: -O --target=x86_64-apple-darwin --crate-type=rlib
|
// compile-flags: -O --target=x86_64-apple-darwin --crate-type=rlib
|
||||||
|
// needs-llvm-components: x86
|
||||||
// rustc-env:MACOSX_DEPLOYMENT_TARGET=10.9
|
// rustc-env:MACOSX_DEPLOYMENT_TARGET=10.9
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// See issue #60235.
|
// See issue #60235.
|
||||||
|
|
||||||
// compile-flags: -O --target=x86_64-apple-darwin --crate-type=rlib
|
// compile-flags: -O --target=x86_64-apple-darwin --crate-type=rlib
|
||||||
|
// needs-llvm-components: x86
|
||||||
// unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
|
// unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
|
||||||
#![feature(no_core, lang_items)]
|
#![feature(no_core, lang_items)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
// needs-llvm-components: arm
|
|
||||||
// revisions: x86_64 arm
|
// revisions: x86_64 arm
|
||||||
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
|
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
|
||||||
//[x86_64] check-pass
|
//[x86_64] check-pass
|
||||||
|
//[x86_64] needs-llvm-components: x86
|
||||||
//[x86_64_allowed] compile-flags: --target x86_64-unknown-linux-gnu
|
//[x86_64_allowed] compile-flags: --target x86_64-unknown-linux-gnu
|
||||||
//[x86_64_allowed] check-pass
|
//[x86_64_allowed] check-pass
|
||||||
|
//[x86_64_allowed] needs-llvm-components: x86
|
||||||
//[arm] compile-flags: --target armv7-unknown-linux-gnueabihf
|
//[arm] compile-flags: --target armv7-unknown-linux-gnueabihf
|
||||||
//[arm] build-fail
|
//[arm] build-fail
|
||||||
|
//[arm] needs-llvm-components: arm
|
||||||
|
|
||||||
#![feature(no_core, lang_items, rustc_attrs)]
|
#![feature(no_core, lang_items, rustc_attrs)]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// build-pass
|
// build-pass
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(abi_c_cmse_nonsecure_call)]
|
#![feature(abi_c_cmse_nonsecure_call)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(abi_c_cmse_nonsecure_call)]
|
// min-llvm-version: 11.0
|
||||||
#![no_std]
|
#![feature(abi_c_cmse_nonsecure_call, no_core, lang_items, intrinsics)]
|
||||||
|
#![no_core]
|
||||||
|
#[lang="sized"]
|
||||||
|
pub trait Sized { }
|
||||||
|
#[lang="copy"]
|
||||||
|
pub trait Copy { }
|
||||||
|
|
||||||
|
extern "rust-intrinsic" {
|
||||||
|
pub fn transmute<T, U>(e: T) -> U;
|
||||||
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn test(a: u32, b: u32, c: u32, d: u32, e: u32) -> u32 {
|
pub fn test(a: u32, b: u32, c: u32, d: u32, e: u32) -> u32 {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(abi_c_cmse_nonsecure_call)]
|
#![feature(abi_c_cmse_nonsecure_call)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(abi_c_cmse_nonsecure_call)]
|
#![feature(abi_c_cmse_nonsecure_call)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// build-pass
|
// build-pass
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(cmse_nonsecure_entry)]
|
#![feature(cmse_nonsecure_entry)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(cmse_nonsecure_entry)]
|
// min-llvm-version: 11.0
|
||||||
#![no_std]
|
#![feature(cmse_nonsecure_entry, no_core, lang_items)]
|
||||||
|
#![no_core]
|
||||||
|
#[lang="sized"]
|
||||||
|
trait Sized { }
|
||||||
|
#[lang="copy"]
|
||||||
|
trait Copy { }
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[cmse_nonsecure_entry]
|
#[cmse_nonsecure_entry]
|
||||||
pub extern "C" fn entry_function(a: u32, b: u32, c: u32, d: u32, e: u32) -> u32 { //~ ERROR
|
pub extern "C" fn entry_function(_: u32, _: u32, _: u32, _: u32, e: u32) -> u32 {
|
||||||
a + b + c + d + e
|
e
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
|
||||||
// only-thumbv8m.main-none-eabi
|
// needs-llvm-components: arm
|
||||||
#![feature(cmse_nonsecure_entry)]
|
#![feature(cmse_nonsecure_entry)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// compile-flags: --target x86_64-unknown-uefi
|
// compile-flags: --target x86_64-unknown-uefi
|
||||||
|
// needs-llvm-components: x86
|
||||||
// rustc-env:CARGO=/usr/bin/cargo
|
// rustc-env:CARGO=/usr/bin/cargo
|
||||||
// rustc-env:RUSTUP_HOME=/home/bors/.rustup
|
// rustc-env:RUSTUP_HOME=/home/bors/.rustup
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// compile-flags: -Z sanitizer=address -C target-feature=+crt-static --target x86_64-unknown-linux-gnu
|
// compile-flags: -Z sanitizer=address -C target-feature=+crt-static --target x86_64-unknown-linux-gnu
|
||||||
|
// needs-llvm-components: x86
|
||||||
|
|
||||||
#![feature(no_core)]
|
#![feature(no_core)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// compile-flags: -Z sanitizer=address -Z sanitizer=memory --target x86_64-unknown-linux-gnu
|
// compile-flags: -Z sanitizer=address -Z sanitizer=memory --target x86_64-unknown-linux-gnu
|
||||||
|
// needs-llvm-components: x86
|
||||||
// error-pattern: error: `-Zsanitizer=address` is incompatible with `-Zsanitizer=memory`
|
// error-pattern: error: `-Zsanitizer=address` is incompatible with `-Zsanitizer=memory`
|
||||||
|
|
||||||
#![feature(no_core)]
|
#![feature(no_core)]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// compile-flags: -Z sanitizer=leak --target i686-unknown-linux-gnu
|
// compile-flags: -Z sanitizer=leak --target i686-unknown-linux-gnu
|
||||||
|
// needs-llvm-components: x86
|
||||||
// error-pattern: error: leak sanitizer is not supported for this target
|
// error-pattern: error: leak sanitizer is not supported for this target
|
||||||
#![feature(no_core)]
|
#![feature(no_core)]
|
||||||
#![no_core]
|
#![no_core]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue