HomePhabricator

[RISCV][test] Add new tests of SH*ADD in the zba extension

Authored by benshi001 on Jun 16 2021, 4:02 PM.

Description

[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

Details

Committed
benshi001Jun 16 2021, 4:02 PM
Reviewer
MaskRay
Differential Revision
D104210: [RISCV][test] Add new tests of SH*ADD in the zba extension
Parents
rG7cfb7a67c57d: [mlir] Make Type::print and Type::dump const
Branches
Unknown
Tags
Unknown