[all-commits] [llvm/llvm-project] d3738a: [RISCV][test] Add tests for mul optimization in th...
Ben Shi via All-commits
all-commits at lists.llvm.org
Tue Jul 20 19:17:15 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3738a09fb2587f584cec5faefda1f37743524a5
https://github.com/llvm/llvm-project/commit/d3738a09fb2587f584cec5faefda1f37743524a5
Author: Ben Shi <powerman1st at 163.com>
Date: 2021-07-21 (Wed, 21 Jul 2021)
Changed paths:
M llvm/test/CodeGen/RISCV/rv32zba.ll
M llvm/test/CodeGen/RISCV/rv64zba.ll
Log Message:
-----------
[RISCV][test] Add tests for mul optimization in the zba extension with SH*ADD
These tests will show the following optimization by future patches.
(mul x, 11) -> (SH1ADD (SH2ADD x, x), x)
(mul x, 19) -> (SH1ADD (SH3ADD x, x), x)
(mul x, 13) -> (SH2ADD (SH1ADD x, x), x)
(mul x, 21) -> (SH2ADD (SH2ADD x, x), x)
(mul x, 37) -> (SH2ADD (SH3ADD x, x), x)
(mul x, 25) -> (SH3ADD (SH1ADD x, x), x)
(mul x, 41) -> (SH3ADD (SH2ADD x, x), x)
(mul x, 73) -> (SH3ADD (SH3ADD x, x), x)
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D106031
More information about the All-commits
mailing list