[all-commits] [llvm/llvm-project] 079905: [RISCV][test] Add new tests of SH*ADD in the zba e...

Ben Shi via All-commits all-commits at lists.llvm.org
Wed Jun 16 16:02:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07990571812df2a702daa2d7cbcd7c3f4e09cdda
      https://github.com/llvm/llvm-project/commit/07990571812df2a702daa2d7cbcd7c3f4e09cdda
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rv32zba.ll
    M llvm/test/CodeGen/RISCV/rv64zba.ll

  Log Message:
  -----------
  [RISCV][test] Add new tests of SH*ADD in the zba extension

These tests will show the following optimization by future patches.

Rx + Ry * 6  => (SH1ADD (SH2ADD Rx, Ry), Ry)
Rx + Ry * 10 => (SH1ADD (SH3ADD Rx, Ry), Ry)
Rx + Ry * 12 => (SH2ADD (SH3ADD Rx, Ry), Ry)

Reviewed By: MaskRay

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




More information about the All-commits mailing list