[all-commits] [llvm/llvm-project] 38a34e: [PowerPC] Use modulo arithmetic for vec_extract in...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Mon Mar 1 17:49:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38a34e207f30747a4b0288d97ce67e422bf5f363
      https://github.com/llvm/llvm-project/commit/38a34e207f30747a4b0288d97ce67e422bf5f363
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M clang/lib/Headers/altivec.h

  Log Message:
  -----------
  [PowerPC] Use modulo arithmetic for vec_extract in altivec.h

These interfaces are not covered in the ELFv2 ABI but are rather
implemented to emulate those available in GCC/XLC. However, the
ones in the other compilers are documented to perform modulo
arithmetic on the element number. This patch just brings clang
inline with the other compilers at -O0 (with optimization, clang
already does the right thing).




More information about the All-commits mailing list