Skip to content

Commit 9dc5cc0

Browse files
committed
!! (WIP) remove i586 target checks
1 parent cc557c5 commit 9dc5cc0

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

src/tools/compiletest/src/directives/directive_names.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
7070
"ignore-gnu",
7171
"ignore-haiku",
7272
"ignore-horizon",
73+
"ignore-i586",
7374
"ignore-i686-pc-windows-gnu",
7475
"ignore-i686-pc-windows-msvc",
7576
"ignore-illumos",

tests/ui/abi/homogenous-floats-target-feature-mixup.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//@ run-pass
88
//@ needs-subprocess
99
//@ ignore-backends: gcc
10+
//@ ignore-i586 (no SSE2)
1011

1112
#![allow(overflowing_literals)]
1213
#![allow(unused_variables)]
@@ -19,16 +20,6 @@ fn main() {
1920
return test::main(&level)
2021
}
2122

22-
match std::env::var("TARGET") {
23-
Ok(s) => {
24-
// Skip this tests on i586-unknown-linux-gnu where sse2 is disabled
25-
if s.contains("i586") {
26-
return
27-
}
28-
}
29-
Err(_) => return,
30-
}
31-
3223
let me = env::current_exe().unwrap();
3324
for level in ["sse", "avx", "avx512"].iter() {
3425
let status = Command::new(&me).arg(level).status().unwrap();

tests/ui/target-feature/target-feature-detection.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,12 @@
22
//! specifically `sse2` on x86/x86_64 platforms, and correctly reports absent features.
33
44
//@ run-pass
5+
//@ ignore-i586 (no SSE2)
56

67
#![allow(stable_features)]
78
#![feature(cfg_target_feature)]
89

9-
use std::env;
10-
1110
fn main() {
12-
match env::var("TARGET") {
13-
Ok(s) => {
14-
// Skip this tests on i586-unknown-linux-gnu where sse2 is disabled
15-
if s.contains("i586") {
16-
return;
17-
}
18-
}
19-
Err(_) => return,
20-
}
2111
if cfg!(any(target_arch = "x86", target_arch = "x86_64")) {
2212
assert!(
2313
cfg!(target_feature = "sse2"),

0 commit comments

Comments
 (0)