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

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Mon Sep 7 10:56:47 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d8feb542b99bd9f3b92b7be422e8f0d86b93870
      https://github.com/llvm/llvm-project/commit/0d8feb542b99bd9f3b92b7be422e8f0d86b93870
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-09-07 (Mon, 07 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