diff options
author | Kai Luo <lkail@cn.ibm.com> | 2023-08-23 01:55:50 +0000 |
---|---|---|
committer | Kai Luo <lkail@cn.ibm.com> | 2023-08-23 01:58:36 +0000 |
commit | 6b6ea93125bd834cae22149e18b742d498dc79a3 (patch) | |
tree | 0e391d152e612397d0ccfea8f452255d8a3db067 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 668f261bfa53d6f9cd9131ca6b1079ec940ab81b (diff) | |
download | llvm-6b6ea93125bd834cae22149e18b742d498dc79a3.zip llvm-6b6ea93125bd834cae22149e18b742d498dc79a3.tar.gz llvm-6b6ea93125bd834cae22149e18b742d498dc79a3.tar.bz2 |
[PowerPC][altivec] Correct modulo number of vec_promote on vector char
According to https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-vec-promote, the index should be input modulo the number of elements in the vector. When the type is `vector char`, the number of elements should be 16.
Reviewed By: qiucf
Differential Revision: https://reviews.llvm.org/D158484
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions