You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#132842 - veluca93:abi-checks-tier2, r=workingjubilee
ABI checks: add support for tier2 arches
See rust-lang#131800 for the data collection behind this change.
r? RalfJung
ABI error: this function call uses a vector type that requires the `{$required_feature}` target feature, which is not enabled in the caller
2
+
this function call uses a SIMD vector type that (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled in the caller
3
3
.label = function called here
4
4
.help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
5
5
monomorphize_abi_error_disabled_vector_type_def =
6
-
ABI error: this function definition uses a vector type that requires the `{$required_feature}` target feature, which is not enabled
6
+
this function definition uses a SIMD vector type that (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled
7
7
.label = function defined here
8
8
.help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
Copy file name to clipboardexpand all lines: tests/ui/simd-abi-checks.rs
+9-9
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ use std::arch::x86_64::*;
12
12
structWrapper(__m256);
13
13
14
14
unsafeextern"C"fnw(_:Wrapper){
15
-
//~^ ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
15
+
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
16
16
//~| WARNING this was previously accepted by the compiler
17
17
todo!()
18
18
}
19
19
20
20
unsafeextern"C"fnf(_:__m256){
21
-
//~^ ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
21
+
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
22
22
//~| WARNING this was previously accepted by the compiler
23
23
todo!()
24
24
}
25
25
26
26
unsafeextern"C"fng() -> __m256{
27
-
//~^ ABI error: this function definition uses a vector type that requires the `avx` target feature, which is not enabled
27
+
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
28
28
//~| WARNING this was previously accepted by the compiler
29
29
todo!()
30
30
}
@@ -53,16 +53,16 @@ unsafe fn test() {
53
53
fnmain(){
54
54
unsafe{
55
55
f(g());
56
-
//~^ WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
57
-
//~| WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
56
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
57
+
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
58
58
//~| WARNING this was previously accepted by the compiler
59
59
//~| WARNING this was previously accepted by the compiler
60
60
}
61
61
62
62
unsafe{
63
63
gavx(favx());
64
-
//~^ WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
65
-
//~| WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
64
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
65
+
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
66
66
//~| WARNING this was previously accepted by the compiler
67
67
//~| WARNING this was previously accepted by the compiler
68
68
}
@@ -73,8 +73,8 @@ fn main() {
73
73
74
74
unsafe{
75
75
w(Wrapper(g()));
76
-
//~^ WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
77
-
//~| WARNING ABI error: this function call uses a vector type that requires the `avx` target feature, which is not enabled in the caller
76
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
77
+
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
78
78
//~| WARNING this was previously accepted by the compiler
79
79
//~| WARNING this was previously accepted by the compiler
0 commit comments