[all-commits] [llvm/llvm-project] 1855c0: [RISCV] Support vector strict rounding operations.

Yeting Kuo via All-commits all-commits at lists.llvm.org
Wed Apr 26 20:35:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1855c0a82a2798276cafe765d825ac7875f5bf1d
      https://github.com/llvm/llvm-project/commit/1855c0a82a2798276cafe765d825ac7875f5bf1d
  Author: Yeting Kuo <yeting.kuo at sifive.com>
  Date:   2023-04-27 (Thu, 27 Apr 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    A llvm/test/CodeGen/RISCV/rvv/fceil-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/ffloor-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fceil-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-ffloor-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fnearbyint-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fround-costrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-froundeven-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-ftrunc-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fnearbyint-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/fround-costrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/froundeven-constrained-sdnode.ll
    A llvm/test/CodeGen/RISCV/rvv/ftrunc-constrained-sdnode.ll

  Log Message:
  -----------
  [RISCV] Support vector strict rounding operations.

The patch basically models custom lowering of base rounding operations to expand
rounding by coverting to ingter and coverting back to FP. The other one thing
the patch does is to covert sNan of the source to qNan.

Reviewed By: craig.topper

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




More information about the All-commits mailing list