[all-commits] [llvm/llvm-project] ed87f5: [PowerPC] Provide some P8-specific altivec overloa...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Thu May 6 06:38:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed87f512bb9eb5c1d44e9a1182ffeaf23d6c5ae8
      https://github.com/llvm/llvm-project/commit/ed87f512bb9eb5c1d44e9a1182ffeaf23d6c5ae8
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

  Log Message:
  -----------
  [PowerPC] Provide some P8-specific altivec overloads for P7

This adds additional support for XL compatibility. There are a number
of functions in altivec.h that produce a single instruction (or a
very short sequence) for Power8 but can be done on Power7 without
scalarization. XL provides these implementations.
This patch adds the following overloads for doubleword vectors:
vec_add
vec_cmpeq
vec_cmpgt
vec_cmpge
vec_cmplt
vec_cmple
vec_sl
vec_sr
vec_sra




More information about the All-commits mailing list