HomePhabricator

[RISCV] Teach targetShrinkDemandedConstant to preserve (and X, 0xffff) when…

Authored by craig.topper on Sun, Apr 11, 9:51 AM.

Description

[RISCV] Teach targetShrinkDemandedConstant to preserve (and X, 0xffff) when zext.h is supported.

Similar to what we do for zext.w.

Disable the (srl (and X, 0xffff), C) custom isel when zext.h is
available.

Details

Committed
craig.topperSun, Apr 11, 10:03 AM
Parents
rG48d69edadef1: [RISCV] Add i8 and i16 srli and srai tests to Zbb/Zbp test files. NFC
Branches
Unknown
Tags
Unknown