Re: [PATCH v1] RISC-V: Support ceil and ceilf auto-vectorization

2023-09-19 Thread juzhe.zh...@rivai.ai
zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Support ceil and ceilf auto-vectorization From: Pan Li This patch would like to support auto-vectorization for both the ceil and ceilf of math.h. It depends on the -ffast-math option. When we would like to call ceil/

[PATCH v1] RISC-V: Support ceil and ceilf auto-vectorization

2023-09-19 Thread pan2 . li
From: Pan Li This patch would like to support auto-vectorization for both the ceil and ceilf of math.h. It depends on the -ffast-math option. When we would like to call ceil/ceilf like v2 = ceil (v1), we will onvert it into below insn (reference the implementation of llvm). * vfcvt.x.f v3, v1,