From 5c99f84dc52d3fc23e9b00abeef2e03be8d55090 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:17:39 +0200 Subject: [PATCH] Fix duplicated argument name in extern block While rustc accepts it just fine due to what is arguably a bug, this duplication does become an issue when generating functions from the llvm intrinsic declarations while reusing the argument names. --- crates/core_arch/src/x86/avx512f.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core_arch/src/x86/avx512f.rs b/crates/core_arch/src/x86/avx512f.rs index 5b2bf4fa9e..a37cda1c51 100644 --- a/crates/core_arch/src/x86/avx512f.rs +++ b/crates/core_arch/src/x86/avx512f.rs @@ -41458,7 +41458,7 @@ extern "C" { fn vfixupimmsdz(a: f64x2, b: f64x2, c: i64x2, imm8: i32, mask: u8, sae: i32) -> f64x2; #[link_name = "llvm.x86.avx512.mask.cvtss2sd.round"] - fn vcvtss2sd(a: f64x2, a: f32x4, src: f64x2, mask: u8, sae: i32) -> f64x2; + fn vcvtss2sd(a: f64x2, b: f32x4, src: f64x2, mask: u8, sae: i32) -> f64x2; #[link_name = "llvm.x86.avx512.mask.cvtsd2ss.round"] fn vcvtsd2ss(a: f32x4, b: f64x2, src: f32x4, mask: u8, rounding: i32) -> f32x4;