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

2023-09-21 Thread juzhe.zh...@rivai.ai
Also。 Remove math.h include。 Instead, plz use __builtin_ceil. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-21 18:32 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v2] RISC-V: Support ceil and ceilf auto-vectorization From: Pan Li This patch would lik

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

2023-09-21 Thread juzhe.zh...@rivai.ai
+(define_expand "ceil2" + [(match_operand:V_VLSF 0 "register_operand") + (match_operand:V_VLSF 1 "register_operand")] + "TARGET_VECTOR" + { +riscv_vector::expand_vec_ceil (operands[0], operands[1], mode, mode); +DONE; + } I think you should add !flag_trapping_math && !flag_rounding_