[PATCH] D104507: [RISCV][test] Add new tests for add-mul optimization in the zba extension with SH*ADD
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 17 20:37:52 PDT 2021
benshi001 created this revision.
benshi001 added reviewers: craig.topper, MaskRay, luismarques, asb.
Herald added subscribers: vkmr, frasercrmck, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar.
Herald added a reviewer: gkistanova.
benshi001 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
These tests will show the following optimization by future patches.
Rx + Ry * 18 => (SH1ADD (SH3ADD Rx, Rx), Ry)
Rx + Ry * 20 => (SH2ADD (SH2ADD Rx, Rx), Ry)
Rx + Ry * 24 => (SH3ADD (SH1ADD Rx, Rx), Ry)
Rx + Ry * 36 => (SH2ADD (SH3ADD Rx, Rx), Ry)
Rx + Ry * 40 => (SH3ADD (SH2ADD Rx, Rx), Ry)
Rx + Ry * 72 => (SH3ADD (SH3ADD Rx, Rx), Ry)
Rx * (3 << C) => (SLLI (SH1ADD Rx, Rx), C
Rx * (5 << C) => (SLLI (SH2ADD Rx, Rx), C
Rx * (9 << C) => (SLLI (SH3ADD Rx, Rx), C
Repository:
rZORG LLVM Github Zorg
https://reviews.llvm.org/D104507
Files:
llvm/test/CodeGen/RISCV/rv32zba.ll
llvm/test/CodeGen/RISCV/rv64zba.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104507.352904.patch
Type: text/x-patch
Size: 12655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210618/9549c514/attachment-0001.bin>
More information about the llvm-commits
mailing list