summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiyu8 <fangchunlin@huawei.com>2020-12-23 17:07:53 +0800
committerQiyu8 <fangchunlin@huawei.com>2020-12-23 17:07:53 +0800
commitb3681b6af3be4220a6f380c0f34f63f77aaf4b07 (patch)
treefe80b510a7283f13b107b72ca5f448127d775271
parent64439512f992f2388cecb559ac18d82014a214ac (diff)
downloadnumpy-b3681b6af3be4220a6f380c0f34f63f77aaf4b07.tar.gz
Add docstrings to indicate which intrinsics are tested.
-rw-r--r--numpy/core/tests/test_simd.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/numpy/core/tests/test_simd.py b/numpy/core/tests/test_simd.py
index 825e61298..71356f812 100644
--- a/numpy/core/tests/test_simd.py
+++ b/numpy/core/tests/test_simd.py
@@ -664,6 +664,11 @@ class _SIMD_ALL(_Test_Utility):
assert false_vsfx != true_vsfx
def test_conversion_expand(self):
+ """
+ Test expand intrinics:
+ npyv_expand_u16_u8
+ npyv_expand_u32_u16
+ """
if self.sfx not in ("u8", "u16"):
return
totype = self.sfx[0]+str(int(self.sfx[1:])*2)
@@ -722,6 +727,12 @@ class _SIMD_ALL(_Test_Utility):
assert div == data_div
def test_arithmetic_reduce_sum(self):
+ """
+ Test reduce sum intrinics:
+ npyv_sum_u32
+ npyv_sum_f32
+ npyv_sum_f64
+ """
if self.sfx not in ("u32", "f32", "f64"):
return
# reduce sum