================ @@ -84,8 +84,14 @@ RISCVTTIImpl::getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT, Cost += VL; break; } + case RISCV::VMV_X_S: ---------------- wangpc-pp wrote: These four cases can be merged. https://github.com/llvm/llvm-project/pull/77342