[all-commits] [llvm/llvm-project] 98b934: [RISCV][NFC] Add test cases for rounding vfcvt

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Jan 18 02:53:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98b9340c07e59d1a32e28609ad1df9c88cdc6f9f
      https://github.com/llvm/llvm-project/commit/98b9340c07e59d1a32e28609ad1df9c88cdc6f9f
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    A llvm/test/CodeGen/RISCV/rvv/double-round-conv.ll
    A llvm/test/CodeGen/RISCV/rvv/float-round-conv.ll
    A llvm/test/CodeGen/RISCV/rvv/half-round-conv.ll

  Log Message:
  -----------
  [RISCV][NFC] Add test cases for rounding vfcvt

Reviewed By: craig.topper

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


  Commit: a0d80c239840ec477dd23071e748e60205ffd6b7
      https://github.com/llvm/llvm-project/commit/a0d80c239840ec477dd23071e748e60205ffd6b7
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    M llvm/test/CodeGen/RISCV/rvv/double-round-conv.ll
    M llvm/test/CodeGen/RISCV/rvv/float-round-conv.ll
    M llvm/test/CodeGen/RISCV/rvv/half-round-conv.ll

  Log Message:
  -----------
  [RISCV] Generalize performFP_TO_INTCombine to vectors

Like in the scalar domain, combine calls to (fp_to_int (ftrunc X)) on
scalable and fixed-length vectors into a single vfcvt instruction.
For truncating rounds, the static vfcvt.rtz rounding mode is used.
Otherwise use the VFCVT_RM_ variants to set the rounding mode
dynamically.
Closes https://github.com/llvm/llvm-project/issues/56737

Reviewed By: craig.topper

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


Compare: https://github.com/llvm/llvm-project/compare/4756f9ae0aa6...a0d80c239840


More information about the All-commits mailing list