[all-commits] [llvm/llvm-project] c87dd6: [RISCV] Update extractelt tests to sign-extend res...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Sat Jan 30 07:57:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c87dd614fd4b0b0d6290b5b90897caa09e053ef0
      https://github.com/llvm/llvm-project/commit/c87dd614fd4b0b0d6290b5b90897caa09e053ef0
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-01-30 (Sat, 30 Jan 2021)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv32.ll
    M llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv64.ll

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list