[RISCV] Add PACKW and PACKH to isSignExtendingOpW in RISCVSExtWRemoval.
authorCraig Topper <craig.topper@sifive.com>
Mon, 14 Nov 2022 04:00:34 +0000 (20:00 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 14 Nov 2022 04:00:34 +0000 (20:00 -0800)
commit1f25888712cb757854c45e3070178968cdd50371
treee2145590c71476ad678784cd8c95cf0ebaeb33b5
parent1a8ba9e19f49dc0fc82615db13ad15f301077145
[RISCV] Add PACKW and PACKH to isSignExtendingOpW in RISCVSExtWRemoval.

PACKW sign extends like other W instructions.
PACKH zeroes bits 63:16 which means bits 63:31 are all zero.
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp