[all-commits] [llvm/llvm-project] 6b6ea9: [PowerPC][altivec] Correct modulo number of vec_pr...

bzEq via All-commits all-commits at lists.llvm.org
Tue Aug 22 18:58:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b6ea93125bd834cae22149e18b742d498dc79a3
      https://github.com/llvm/llvm-project/commit/6b6ea93125bd834cae22149e18b742d498dc79a3
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M clang/lib/Headers/altivec.h
    M clang/test/CodeGen/PowerPC/builtins-ppc-vsx.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list