diff options
| author | Ben Shi <powerman1st@163.com> | 2021-07-09 09:48:23 +0800 |
|---|---|---|
| committer | Ben Shi <powerman1st@163.com> | 2021-07-09 09:48:23 +0800 |
| commit | ed102ce20a5f5ddf388bc71217228b756e2f5fe3 (patch) | |
| tree | a8137563663c468cf7b3b4b97593ef49c40a35d2 /lldb/source/Plugins/ScriptInterpreter/Python | |
| parent | 38451fa1789cd42fe4c1ed8ac519620892e4634d (diff) | |
| download | llvm-ed102ce20a5f5ddf388bc71217228b756e2f5fe3.zip llvm-ed102ce20a5f5ddf388bc71217228b756e2f5fe3.tar.gz llvm-ed102ce20a5f5ddf388bc71217228b756e2f5fe3.tar.bz2 | |
[RISCV][test] Add new tests for mul optimization in the zba extension with SH*ADD
This patch will show the following optimization by future patches.
(mul x imm) -> (SH1ADD x, (SLLI x, bits)) when imm = 2^n + 2.
(mul x imm) -> (SH2ADD x, (SLLI x, bits)) when imm = 2^n + 4.
(mul x imm) -> (SH3ADD x, (SLLI x, bits)) when imm = 2^n + 8.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D105614
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
