Files
clang-p2996/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
Craig Topper 3e798476de [LegalizeDAG][RISCV] Don't promote f16 vector ISD::FNEG/FABS/FCOPYSIGN to f32 when we don't have Zvfh. (#106652)
The fp_extend will canonicalize NaNs which is not the semantics of
FNEG/FABS/FCOPYSIGN.

For fixed vectors I'm scalarizing due to test changes on other targets
where the scalarization is expected. I will try to address in a follow
up.

For scalable vectors, we bitcast to integer and use integer logic ops.
2024-09-03 22:44:49 -07:00

78 KiB