[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
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2022-04-21 (Thu, 21 Apr 2022)
[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