Skip to content

Commit 881c1ac

Browse files
committed
Auto merge of #83278 - Amanieu:bump_stdarch, r=Mark-Simulacrum
Bump stdarch submodule Major changes: - More AVX-512 intrinsics. - More ARM & AArch64 NEON intrinsics. - Updated unstable WASM intrinsics to latest draft standards. - Intrinsics that previously used `#[rustc_args_required_const]` now use const generics. See #83167 for more details. - `std_detect` is now a separate crate instead of a submodule of `std`.
2 parents ff34b91 + bf8b15f commit 881c1ac

7 files changed

+28
-34
lines changed

library/stdarch

Submodule stdarch updated 93 files

src/test/ui/consts/const_arg_local.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
// only-x86_64
1+
#![feature(rustc_attrs)]
22

3-
#[cfg(target_arch = "x86")]
4-
use std::arch::x86::*;
5-
#[cfg(target_arch = "x86_64")]
6-
use std::arch::x86_64::*;
3+
#[rustc_args_required_const(0)]
4+
fn foo(_imm8: i32) {}
75

8-
unsafe fn pclmul(a: __m128i, b: __m128i) -> __m128i {
6+
fn bar() {
97
let imm8 = 3;
10-
_mm_clmulepi64_si128(a, b, imm8) //~ ERROR argument 3 is required to be a constant
8+
foo(imm8) //~ ERROR argument 1 is required to be a constant
119
}
1210

1311
fn main() {}
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: argument 3 is required to be a constant
2-
--> $DIR/const_arg_local.rs:10:5
1+
error: argument 1 is required to be a constant
2+
--> $DIR/const_arg_local.rs:8:5
33
|
4-
LL | _mm_clmulepi64_si128(a, b, imm8)
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | foo(imm8)
5+
| ^^^^^^^^^
66

77
error: aborting due to previous error
88

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// only-x86_64
1+
#![feature(rustc_attrs)]
22

3-
#[cfg(target_arch = "x86")]
4-
use std::arch::x86::*;
5-
#[cfg(target_arch = "x86_64")]
6-
use std::arch::x86_64::*;
3+
#[rustc_args_required_const(0)]
4+
fn foo(_imm8: i32) {}
75

8-
unsafe fn pclmul(a: __m128i, b: __m128i) -> __m128i {
9-
_mm_clmulepi64_si128(a, b, *&mut 42) //~ ERROR argument 3 is required to be a constant
6+
fn bar() {
7+
foo(*&mut 42) //~ ERROR argument 1 is required to be a constant
108
}
119

1210
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: argument 3 is required to be a constant
2-
--> $DIR/const_arg_promotable.rs:9:5
1+
error: argument 1 is required to be a constant
2+
--> $DIR/const_arg_promotable.rs:7:5
33
|
4-
LL | _mm_clmulepi64_si128(a, b, *&mut 42)
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | foo(*&mut 42)
5+
| ^^^^^^^^^^^^^
66

77
error: aborting due to previous error
88

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// only-x86_64
1+
#![feature(rustc_attrs)]
22

3-
#[cfg(target_arch = "x86")]
4-
use std::arch::x86::*;
5-
#[cfg(target_arch = "x86_64")]
6-
use std::arch::x86_64::*;
3+
#[rustc_args_required_const(0)]
4+
fn foo(_imm8: i32) {}
75

8-
unsafe fn pclmul(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
9-
_mm_clmulepi64_si128(a, b, imm8) //~ ERROR argument 3 is required to be a constant
6+
fn bar(imm8: i32) {
7+
foo(imm8) //~ ERROR argument 1 is required to be a constant
108
}
119

1210
fn main() {}
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: argument 3 is required to be a constant
2-
--> $DIR/const_arg_wrapper.rs:9:5
1+
error: argument 1 is required to be a constant
2+
--> $DIR/const_arg_wrapper.rs:7:5
33
|
4-
LL | _mm_clmulepi64_si128(a, b, imm8)
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | foo(imm8)
5+
| ^^^^^^^^^
66

77
error: aborting due to previous error
88

0 commit comments

Comments
 (0)