[RISCV][NFC] Add tests for SLP vectorization of math functions
authorBen Shi <powerman1st@163.com>
Wed, 8 Mar 2023 10:03:49 +0000 (18:03 +0800)
committerBen Shi <powerman1st@163.com>
Thu, 9 Mar 2023 23:34:21 +0000 (07:34 +0800)
commit013235a2000d155dee8288a1665efcac152d4ea4
tree2887bc7d097f04252c6d533cef3dc5a8d26fd254
parentb07ef9e7cd6f5348df0a4f63e70a60491427ff64
[RISCV][NFC] Add tests for SLP vectorization of math functions

RISCV has "vfabs.v" and "vfsqrt.v" so math functions abs and sqrt
can be SLP vectorized. But others exp/log/sin/asin/sinh/asinh/...
can not.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D145562
llvm/test/Transforms/SLPVectorizer/RISCV/math-function.ll [new file with mode: 0644]