[all-commits] [llvm/llvm-project] 832896: [PowerPC] Fix to guard fetch and cas 64-bit builti...

Kamau Bridgeman via All-commits all-commits at lists.llvm.org
Mon Oct 4 12:45:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83289665200b6b9212e0ff14e274b2c431a2e1fa
      https://github.com/llvm/llvm-project/commit/83289665200b6b9212e0ff14e274b2c431a2e1fa
  Author: Kamau Bridgeman <kamau.bridgeman at ibm.com>
  Date:   2021-10-04 (Mon, 04 Oct 2021)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins-ppc-xlcompat-error.c

  Log Message:
  -----------
  [PowerPC] Fix to guard fetch and cas 64-bit builtin versions

The builtins: `__compare_and_swaplp`, `__fetch_and_addlp`,
` __fetch_and_andlp`, `__fetch_and_orlp`, `__fetch_and_swaplp` are
64 bit only. This patch ensures the compiler produces an error in 32 bit mode.

Reviewed By: #powerpc, nemanjai

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




More information about the All-commits mailing list