Skip to content

Commit a8e1916

Browse files
committed
Fix pointer type for _mm512_loadu_si512
The C intrinsic uses a void pointer but we must specify a type in Rust. This PR makes it consistent with the equivalent SSE and AVX intrinsics, as well as `_mm512_store_si512`.
1 parent 54c8837 commit a8e1916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core_arch/src/x86/avx512f.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34435,7 +34435,7 @@ pub unsafe fn _mm_storeu_epi64(mem_addr: *mut i64, a: __m128i) {
3443534435
#[target_feature(enable = "avx512f")]
3443634436
#[unstable(feature = "stdarch_x86_avx512", issue = "111137")]
3443734437
#[cfg_attr(test, assert_instr(vmovups))] //should be vmovdqu32
34438-
pub unsafe fn _mm512_loadu_si512(mem_addr: *const i32) -> __m512i {
34438+
pub unsafe fn _mm512_loadu_si512(mem_addr: *const __m512i) -> __m512i {
3443934439
ptr::read_unaligned(mem_addr as *const __m512i)
3444034440
}
3444134441

@@ -34509,7 +34509,7 @@ pub unsafe fn _mm512_storeu_ps(mem_addr: *mut f32, a: __m512) {
3450934509
#[target_feature(enable = "avx512f")]
3451034510
#[unstable(feature = "stdarch_x86_avx512", issue = "111137")]
3451134511
#[cfg_attr(test, assert_instr(vmovaps))] //should be vmovdqa32
34512-
pub unsafe fn _mm512_load_si512(mem_addr: *const i32) -> __m512i {
34512+
pub unsafe fn _mm512_load_si512(mem_addr: *const __m512i) -> __m512i {
3451334513
ptr::read(mem_addr as *const __m512i)
3451434514
}
3451534515

0 commit comments

Comments
 (0)