From 910674f1c4d1551ffab71627e1821cf8298f3669 Mon Sep 17 00:00:00 2001 From: DianQK Date: Sun, 24 Sep 2023 09:46:04 +0800 Subject: [PATCH] Only check for successful vectorization on wider_reduce_into_iter Different vectorization results are due to different LLVM versions. --- tests/codegen/simd/simd-wide-sum.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/codegen/simd/simd-wide-sum.rs b/tests/codegen/simd/simd-wide-sum.rs index 3dc0a3ec039..f80e957641c 100644 --- a/tests/codegen/simd/simd-wide-sum.rs +++ b/tests/codegen/simd/simd-wide-sum.rs @@ -52,8 +52,6 @@ pub fn wider_reduce_iter(x: Simd) -> u16 { #[no_mangle] // CHECK-LABEL: @wider_reduce_into_iter pub fn wider_reduce_into_iter(x: Simd) -> u16 { - // CHECK: zext <16 x i8> - // CHECK-SAME: to <16 x i16> - // CHECK: call i16 @llvm.vector.reduce.add.v16i16(<16 x i16> + // CHECK: call i16 @llvm.vector.reduce.add x.to_array().into_iter().map(u16::from).sum() }