about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-28 16:23:04 +0000
committerbors <bors@rust-lang.org>2024-03-28 16:23:04 +0000
commit929bceeaf8d3252581499ac4bc9d964d8a1a6874 (patch)
treec993cc3879785656822428f60baa366ab6c66db9
parentc5e7f45b6219a963e8e27ef6e15587f22e80a3f5 (diff)
parentec359f7d9f80a180e37f310fd417e9459e738466 (diff)
downloadrust-929bceeaf8d3252581499ac4bc9d964d8a1a6874.tar.gz
rust-929bceeaf8d3252581499ac4bc9d964d8a1a6874.zip
Auto merge of #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: https://github.com/rust-lang/rust/pull/116018#discussion_r1348353459.

r? scottmcm
-rw-r--r--tests/codegen/simd/simd-wide-sum.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codegen/simd/simd-wide-sum.rs b/tests/codegen/simd/simd-wide-sum.rs
index 2edee552ca6..fb9b61884e7 100644
--- a/tests/codegen/simd/simd-wide-sum.rs
+++ b/tests/codegen/simd/simd-wide-sum.rs
@@ -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()
 }