Use explicit cpu in some asm and codegen tests.
Some tests expect to be compiled for a specific CPU or require certain target features to be present (or absent). These tests work fine with default CPUs but fail in downstream builds for RHEL and Fedora, where we use non-default CPUs such as z13 on s390x, pwr9 on ppc64le, or x86-64-v2/x86-64-v3 on x86_64.
This commit is contained in:
parent
a7fc463dd8
commit
20432c9eee
7 changed files with 29 additions and 28 deletions
|
@ -1,6 +1,6 @@
|
|||
//@ add-core-stubs
|
||||
//@ revisions: s390x
|
||||
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu
|
||||
//@[s390x] compile-flags: --target s390x-unknown-linux-gnu -C target-cpu=z10
|
||||
//@[s390x] needs-llvm-components: systemz
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//@ only-x86_64
|
||||
//@ compile-flags: -C opt-level=3
|
||||
//@ compile-flags: -C opt-level=3 -C target-cpu=x86-64
|
||||
#![crate_type = "lib"]
|
||||
|
||||
/// Check that the fast-path of `is_ascii` uses a `pmovmskb` instruction.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue