[RISCV] Update extractelt tests to sign-extend results (NFC)
authorFraser Cormack <fraser@codeplay.com>
Sat, 30 Jan 2021 15:47:16 +0000 (15:47 +0000)
committerFraser Cormack <fraser@codeplay.com>
Sat, 30 Jan 2021 15:50:07 +0000 (15:50 +0000)
commitc87dd614fd4b0b0d6290b5b90897caa09e053ef0
treeb84ec5963595603939a9fc89f4ed85dd5faf9cde
parentd22140687500f90830fe416d9c1e317f7c4535d5
[RISCV] Update extractelt tests to sign-extend results (NFC)

This demonstrates a missed optimization: the `vmv.x.s` instruction is
used to extract the element from the vector, and this instruction
already sign-extends the value to XLEN.
llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv32.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv64.ll