[all-commits] [llvm/llvm-project] 2534dc: [PowerPC] Enable CR bits support for Power8 and ab...

Amy Kwan via All-commits all-commits at lists.llvm.org
Mon May 2 10:06:37 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2534dc120a4c9468d9a0044665a50361089f0a4d
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
    M clang/docs/ClangCommandLineReference.rst
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/Basic/Targets/PPC.h
    A clang/test/Driver/ppc-crbits.cpp
    M llvm/lib/Target/PowerPC/PPC.td
    M llvm/test/CodeGen/PowerPC/addegluecrash.ll
    M llvm/test/CodeGen/PowerPC/f128-branch-cond.ll
    M llvm/test/CodeGen/PowerPC/fast-isel-fcmp-nan.ll
    M llvm/test/CodeGen/PowerPC/fp-strict-fcmp-noopt.ll
    M llvm/test/CodeGen/PowerPC/fp64-to-int16.ll
    M llvm/test/CodeGen/PowerPC/pcrel-byte-loads.ll

  Log Message:
  [PowerPC] Enable CR bits support for Power8 and above.

This patch turns on support for CR bit accesses for Power8 and above. The reason
why CR bits are turned on as the default for Power8 and above is that because
later architectures make use of builtins and instructions that require CR bit
accesses (such as the use of setbc in the vector string isolate predicate
and bcd builtins on Power10).

This patch also adds the clang portion to allow for turning on CR bits in the
front end if the user so desires to.

Differential Revision: https://reviews.llvm.org/D124060

More information about the All-commits mailing list