[all-commits] [llvm/llvm-project] be51dd: [RISCV] Add integer min/max intrinsic tests. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Thu May 5 09:40:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be51ddf6b4545122318150795a02d3408942e221
      https://github.com/llvm/llvm-project/commit/be51ddf6b4545122318150795a02d3408942e221
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    A llvm/test/CodeGen/RISCV/min-max.ll

  Log Message:
  -----------
  [RISCV] Add integer min/max intrinsic tests. NFC

Add basic tests and some tests for same operands and all undef
operands inspired by PR55271.

i32 is umin/umax is using signext to match RISC-V ABI. i8/i16 are
using signext/zeroext to match the operation.

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


  Commit: fd13192aa55508e426a9de3aa8959bf639d49d7f
      https://github.com/llvm/llvm-project/commit/fd13192aa55508e426a9de3aa8959bf639d49d7f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/RISCV/min-max.ll

  Log Message:
  -----------
  [DAGCombiner] Fold (max/min X, X) -> X.

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


  Commit: 4e2d1a6c180613058766eea0c564154b8a563726
      https://github.com/llvm/llvm-project/commit/4e2d1a6c180613058766eea0c564154b8a563726
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.class.ll
    M llvm/test/CodeGen/RISCV/min-max.ll

  Log Message:
  -----------
  [DAGCombiner] Fold (sext/zext undef) -> 0 and aext(undef) -> undef.

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


Compare: https://github.com/llvm/llvm-project/compare/52d0ef3c00fc...4e2d1a6c1806


More information about the All-commits mailing list