[all-commits] [llvm/llvm-project] 627e21: [RISCV] Add another test showing incorrect BUILD_V...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Wed Apr 20 23:07:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 627e21048a2c040d3e353cc4f0eb8f207b6ea61c
      https://github.com/llvm/llvm-project/commit/627e21048a2c040d3e353cc4f0eb8f207b6ea61c
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll

  Log Message:
  -----------
  [RISCV] Add another test showing incorrect BUILD_VECTOR lowering

This test shows a (contrived) BUILD_VECTOR which is correctly identified
as a sequence of ((vid * -3) / 8) + 5. However, the issue is that using
shift-right for the divide is invalid as the step values are negative.

This patch just adds the test: the fix is added in D123796.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D123989




More information about the All-commits mailing list