[all-commits] [llvm/llvm-project] 2509dc: [RISCV] Add rvv codegen support for vp.fpext.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Tue May 10 20:28:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2509dcd58a0a3dee33ed337b92fd2436d2e342f2
      https://github.com/llvm/llvm-project/commit/2509dcd58a0a3dee33ed337b92fd2436d2e342f2
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    A llvm/test/CodeGen/RISCV/rvv/fixed-vector-fpext-vp.ll
    A llvm/test/CodeGen/RISCV/rvv/vfpext-vp.ll

  Log Message:
  -----------
  [RISCV] Add rvv codegen support for vp.fpext.

This patch adds rvv codegen support for vp.fpext. The lowering of fp_round, vp.fptrunc, fp_extend and vp.fpext share most code so use a common lowering function to handle these four.
And this patch changes the intermediate cast from ISD::FP_EXTEND/ISD::FP_ROUND to the RVV VL version op RISCVISD::FP_EXTEND_VL and RISCVISD::FP_ROUND_VL for scalable vectors.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D123975




More information about the All-commits mailing list