about summary refs log tree commit diff
path: root/tests/codegen/simd
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-03-28 21:28:32 +0800
committerDianQK <dianqk@dianqk.net>2024-03-28 21:28:45 +0800
commitec359f7d9f80a180e37f310fd417e9459e738466 (patch)
treeee58fcf76b46302690fa1f5959dc1c454a953554 /tests/codegen/simd
parent551abd65bee759c1fd1cc0acd5ba7e5723823c54 (diff)
downloadrust-ec359f7d9f80a180e37f310fd417e9459e738466.tar.gz
rust-ec359f7d9f80a180e37f310fd417e9459e738466.zip
Restore the test checks for `wider_reduce_into_iter`
The current minimum support is for LLVM 17.
Diffstat (limited to 'tests/codegen/simd')
-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()
 }