Skip to content

Commit 4e8cccd

Browse files
committed
Remove uses of #[feature(avx512_target_feature)]
1 parent b08b970 commit 4e8cccd

11 files changed

+17
-27
lines changed

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-aes-vaes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@only-target: x86_64 i686
33
//@compile-flags: -C target-feature=+aes,+vaes,+avx512f
44

5-
#![feature(avx512_target_feature, stdarch_x86_avx512)]
5+
#![feature(stdarch_x86_avx512)]
66

77
use core::mem::transmute;
88
#[cfg(target_arch = "x86")]

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-avx512.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@only-target: x86_64 i686
33
//@compile-flags: -C target-feature=+avx512f,+avx512vl,+avx512bitalg,+avx512vpopcntdq
44

5-
#![feature(avx512_target_feature)]
65
#![feature(stdarch_x86_avx512)]
76

87
#[cfg(target_arch = "x86")]

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-gfni.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// be interpreted as integers; signedness does not make sense for them, but
77
// __mXXXi happens to be defined in terms of signed integers.
88
#![allow(overflowing_literals)]
9-
#![feature(avx512_target_feature)]
109
#![feature(stdarch_x86_avx512)]
1110

1211
#[cfg(target_arch = "x86")]

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-vpclmulqdq.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// be interpreted as integers; signedness does not make sense for them, but
99
// __mXXXi happens to be defined in terms of signed integers.
1010
#![allow(overflowing_literals)]
11-
#![feature(avx512_target_feature)]
1211
#![feature(stdarch_x86_avx512)]
1312

1413
#[cfg(target_arch = "x86")]

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

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//@ run-pass
88
//@ needs-subprocess
99

10-
#![feature(avx512_target_feature)]
11-
1210
#![allow(overflowing_literals)]
1311
#![allow(unused_variables)]
1412

tests/ui/abi/simd-abi-checks-avx.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@ build-fail
33
//@ compile-flags: -C target-feature=-avx
44

5-
#![feature(avx512_target_feature)]
65
#![feature(portable_simd)]
76
#![feature(simd_ffi)]
87
#![allow(improper_ctypes_definitions)]

tests/ui/abi/simd-abi-checks-avx.stderr

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
11
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
2-
--> $DIR/simd-abi-checks-avx.rs:60:11
2+
--> $DIR/simd-abi-checks-avx.rs:59:11
33
|
44
LL | f(g());
55
| ^^^ function called here
66
|
77
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
88

99
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
10-
--> $DIR/simd-abi-checks-avx.rs:60:9
10+
--> $DIR/simd-abi-checks-avx.rs:59:9
1111
|
1212
LL | f(g());
1313
| ^^^^^^ function called here
1414
|
1515
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
1616

1717
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
18-
--> $DIR/simd-abi-checks-avx.rs:66:14
18+
--> $DIR/simd-abi-checks-avx.rs:65:14
1919
|
2020
LL | gavx(favx());
2121
| ^^^^^^ function called here
2222
|
2323
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
2424

2525
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
26-
--> $DIR/simd-abi-checks-avx.rs:66:9
26+
--> $DIR/simd-abi-checks-avx.rs:65:9
2727
|
2828
LL | gavx(favx());
2929
| ^^^^^^^^^^^^ function called here
3030
|
3131
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
3232

3333
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
34-
--> $DIR/simd-abi-checks-avx.rs:76:19
34+
--> $DIR/simd-abi-checks-avx.rs:75:19
3535
|
3636
LL | w(Wrapper(g()));
3737
| ^^^ function called here
3838
|
3939
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
4040

4141
error: this function call uses SIMD vector type `Wrapper` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
42-
--> $DIR/simd-abi-checks-avx.rs:76:9
42+
--> $DIR/simd-abi-checks-avx.rs:75:9
4343
|
4444
LL | w(Wrapper(g()));
4545
| ^^^^^^^^^^^^^^^ function called here
4646
|
4747
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
4848

4949
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
50-
--> $DIR/simd-abi-checks-avx.rs:90:9
50+
--> $DIR/simd-abi-checks-avx.rs:89:9
5151
|
5252
LL | some_extern();
5353
| ^^^^^^^^^^^^^ function called here
5454
|
5555
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
5656

5757
error: this function definition uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
58-
--> $DIR/simd-abi-checks-avx.rs:25:1
58+
--> $DIR/simd-abi-checks-avx.rs:24:1
5959
|
6060
LL | unsafe extern "C" fn g() -> __m256 {
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function defined here
6262
|
6363
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
6464

6565
error: this function definition uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
66-
--> $DIR/simd-abi-checks-avx.rs:20:1
66+
--> $DIR/simd-abi-checks-avx.rs:19:1
6767
|
6868
LL | unsafe extern "C" fn f(_: __m256) {
6969
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function defined here
7070
|
7171
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
7272

7373
error: this function definition uses SIMD vector type `Wrapper` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
74-
--> $DIR/simd-abi-checks-avx.rs:15:1
74+
--> $DIR/simd-abi-checks-avx.rs:14:1
7575
|
7676
LL | unsafe extern "C" fn w(_: Wrapper) {
7777
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function defined here
7878
|
7979
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
8080

8181
error: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
82-
--> $DIR/simd-abi-checks-avx.rs:54:8
82+
--> $DIR/simd-abi-checks-avx.rs:53:8
8383
|
8484
LL | || g()
8585
| ^^^ function called here
8686
|
8787
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
8888

8989
note: the above error was encountered while instantiating `fn in_closure::{closure#0}`
90-
--> $DIR/simd-abi-checks-avx.rs:82:9
90+
--> $DIR/simd-abi-checks-avx.rs:81:9
9191
|
9292
LL | in_closure()();
9393
| ^^^^^^^^^^^^^^

tests/ui/asm/x86_64/evex512-implicit-feature.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@ only-x86_64
33
//@ compile-flags: --crate-type=lib -C target-cpu=skylake
44

5-
#![feature(avx512_target_feature)]
65
#![feature(stdarch_x86_avx512)]
76

87
use std::arch::x86_64::*;

tests/ui/asm/x86_64/target-feature-attr.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Set the base cpu explicitly, in case the default has been changed.
33
//@ compile-flags: -C target-cpu=x86-64
44

5-
#![feature(avx512_target_feature)]
6-
75
use std::arch::asm;
86

97
#[target_feature(enable = "avx")]

tests/ui/asm/x86_64/target-feature-attr.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
error: register class `ymm_reg` requires the `avx` target feature
2-
--> $DIR/target-feature-attr.rs:20:40
2+
--> $DIR/target-feature-attr.rs:18:40
33
|
44
LL | asm!("vaddps {2:y}, {0:y}, {1:y}", in(ymm_reg) x, in(ymm_reg) y, lateout(ymm_reg) x);
55
| ^^^^^^^^^^^^^
66

77
error: register class `ymm_reg` requires the `avx` target feature
8-
--> $DIR/target-feature-attr.rs:20:55
8+
--> $DIR/target-feature-attr.rs:18:55
99
|
1010
LL | asm!("vaddps {2:y}, {0:y}, {1:y}", in(ymm_reg) x, in(ymm_reg) y, lateout(ymm_reg) x);
1111
| ^^^^^^^^^^^^^
1212

1313
error: register class `ymm_reg` requires the `avx` target feature
14-
--> $DIR/target-feature-attr.rs:20:70
14+
--> $DIR/target-feature-attr.rs:18:70
1515
|
1616
LL | asm!("vaddps {2:y}, {0:y}, {1:y}", in(ymm_reg) x, in(ymm_reg) y, lateout(ymm_reg) x);
1717
| ^^^^^^^^^^^^^^^^^^
1818

1919
error: register class `kreg` requires at least one of the following target features: avx512bw, avx512f
20-
--> $DIR/target-feature-attr.rs:35:23
20+
--> $DIR/target-feature-attr.rs:33:23
2121
|
2222
LL | asm!("/* {0} */", in(kreg) x);
2323
| ^^^^^^^^^^

tests/ui/simd/target-feature-mixup.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//@ ignore-fuchsia must translate zircon signal to SIGILL, FIXME (#58590)
88

99
#![feature(repr_simd, target_feature, cfg_target_feature)]
10-
#![feature(avx512_target_feature)]
1110

1211
use std::process::{Command, ExitStatus};
1312
use std::env;

0 commit comments

Comments
 (0)