Skip to content
Commit 6b6ea931 authored by Kai Luo's avatar Kai Luo
Browse files

[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
parent 668f261b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment