[all-commits] [llvm/llvm-project] 2d6529: [PowerPC] Provide vec_cmpne on pre-Power9 architec...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Fri Sep 4 18:49:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d652949be4b772f2c11577621b0ad33052ac844
      https://github.com/llvm/llvm-project/commit/2d652949be4b772f2c11577621b0ad33052ac844
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-09-04 (Fri, 04 Sep 2020)

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

  Log Message:
  -----------
  [PowerPC] Provide vec_cmpne on pre-Power9 architectures in altivec.h

These overloads are listed in appendix A of the ELFv2 ABI specification
without a requirement for ISA 3.0. So these need to be available on
all Altivec-capable architectures. The implementation in altivec.h
erroneously had them guarded for Power9 due to the availability of
the VCMPNE[BHW] instructions. However these need to be implemented
in terms of the VCMPEQ[BHW] instructions on older architectures.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=47423




More information about the All-commits mailing list