[all-commits] [llvm/llvm-project] 6544d9: [flang] Fix vector cshift runtime with non zero lo...
jeanPerier via All-commits
all-commits at lists.llvm.org
Fri Nov 12 00:44:57 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6544d9a4a098c24ebafe2856259f927af8f211ec
https://github.com/llvm/llvm-project/commit/6544d9a4a098c24ebafe2856259f927af8f211ec
Author: Jean Perier <jperier at nvidia.com>
Date: 2021-11-12 (Fri, 12 Nov 2021)
Changed paths:
M flang/runtime/transformational.cpp
M flang/unittests/Runtime/Transformational.cpp
Log Message:
-----------
[flang] Fix vector cshift runtime with non zero lower bounds
The source index should not be compared to zero after applying the
shift with the modulo, it must be compared to the lower bound.
Otherwise, the extent is not added in case it should and the computed
source index may be less than the lower bound, causing invalid results.
Differential Revision: https://reviews.llvm.org/D113659
More information about the All-commits
mailing list