Skip to content

Commit 20eece1

Browse files
committed
Correct the return type for x86_mm256_sad_epu8
Fixes #43439.
1 parent eff3de0 commit 20eece1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/etc/platform-intrinsics/x86/avx2.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"intrinsic": "256_sad_epu8",
175175
"width": [256],
176176
"llvm": "psad.bw",
177-
"ret": "u8",
177+
"ret": "u64",
178178
"args": ["0", "0"]
179179
},
180180
{

src/librustc_platform_intrinsics/x86.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ pub fn find(name: &str) -> Option<Intrinsic> {
354354
},
355355
"_mm256_sad_epu8" => Intrinsic {
356356
inputs: { static INPUTS: [&'static Type; 2] = [&::U8x32, &::U8x32]; &INPUTS },
357-
output: &::U8x32,
357+
output: &::U64x4,
358358
definition: Named("llvm.x86.avx2.psad.bw")
359359
},
360360
"_mm256_shuffle_epi8" => Intrinsic {

0 commit comments

Comments
 (0)