Skip to content

Commit

Permalink
Auto merge of rust-lang#123167 - DianQK:test-simd-wide-sum, r=scottmcm
Browse files Browse the repository at this point in the history
Restore the test checks for `wider_reduce_into_iter`

The current minimum support is for LLVM 17. Context: rust-lang#116018 (comment).

r? scottmcm
  • Loading branch information
bors committed Mar 28, 2024
2 parents c5e7f45 + ec359f7 commit 929bcee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/codegen/simd/simd-wide-sum.rs
Expand Up @@ -51,8 +51,8 @@ pub fn wider_reduce_iter(x: Simd<u8, N>) -> u16 {
#[no_mangle]
// CHECK-LABEL: @wider_reduce_into_iter
pub fn wider_reduce_into_iter(x: Simd<u8, N>) -> u16 {
// FIXME: It would be nice if this was exactly the same as the above tests,
// but at the time of writing this comment, that didn't happen on LLVM main.
// CHECK: call i16 @llvm.vector.reduce.add
// CHECK: zext <16 x i8>
// CHECK-SAME: to <16 x i16>
// CHECK: call i16 @llvm.vector.reduce.add.v16i16(<16 x i16>
x.to_array().into_iter().map(u16::from).sum()
}

0 comments on commit 929bcee

Please sign in to comment.