Skip to content

Commit 910674f

Browse files
committed
Only check for successful vectorization on wider_reduce_into_iter
Different vectorization results are due to different LLVM versions.
1 parent d30f210 commit 910674f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/codegen/simd/simd-wide-sum.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ pub fn wider_reduce_iter(x: Simd<u8, N>) -> u16 {
5252
#[no_mangle]
5353
// CHECK-LABEL: @wider_reduce_into_iter
5454
pub fn wider_reduce_into_iter(x: Simd<u8, N>) -> u16 {
55-
// CHECK: zext <16 x i8>
56-
// CHECK-SAME: to <16 x i16>
57-
// CHECK: call i16 @llvm.vector.reduce.add.v16i16(<16 x i16>
55+
// CHECK: call i16 @llvm.vector.reduce.add
5856
x.to_array().into_iter().map(u16::from).sum()
5957
}

0 commit comments

Comments
 (0)