Skip to content

Commit 929bcee

Browse files
committed
Auto merge of rust-lang#123167 - DianQK:test-simd-wide-sum, r=scottmcm
Restore the test checks for `wider_reduce_into_iter` The current minimum support is for LLVM 17. Context: rust-lang#116018 (comment). r? scottmcm
2 parents c5e7f45 + ec359f7 commit 929bcee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub fn wider_reduce_iter(x: Simd<u8, N>) -> u16 {
5151
#[no_mangle]
5252
// CHECK-LABEL: @wider_reduce_into_iter
5353
pub fn wider_reduce_into_iter(x: Simd<u8, N>) -> u16 {
54-
// FIXME: It would be nice if this was exactly the same as the above tests,
55-
// but at the time of writing this comment, that didn't happen on LLVM main.
56-
// CHECK: call i16 @llvm.vector.reduce.add
54+
// CHECK: zext <16 x i8>
55+
// CHECK-SAME: to <16 x i16>
56+
// CHECK: call i16 @llvm.vector.reduce.add.v16i16(<16 x i16>
5757
x.to_array().into_iter().map(u16::from).sum()
5858
}

0 commit comments

Comments
 (0)