Only check for successful vectorization on wider_reduce_into_iter
Different vectorization results are due to different LLVM versions.
This commit is contained in:
parent
d30f210e5d
commit
910674f1c4
1 changed files with 1 additions and 3 deletions
|
@ -52,8 +52,6 @@ pub fn wider_reduce_iter(x: Simd<u8, N>) -> u16 {
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
// CHECK-LABEL: @wider_reduce_into_iter
|
// CHECK-LABEL: @wider_reduce_into_iter
|
||||||
pub fn wider_reduce_into_iter(x: Simd<u8, N>) -> u16 {
|
pub fn wider_reduce_into_iter(x: Simd<u8, N>) -> u16 {
|
||||||
// CHECK: zext <16 x i8>
|
// CHECK: call i16 @llvm.vector.reduce.add
|
||||||
// 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()
|
x.to_array().into_iter().map(u16::from).sum()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue