[PowerPC] Fix to guard fetch and cas 64-bit builtin versions
authorKamau Bridgeman <kamau.bridgeman@ibm.com>
Thu, 30 Sep 2021 13:20:22 +0000 (08:20 -0500)
committerKamau Bridgeman <kamau.bridgeman@ibm.com>
Mon, 4 Oct 2021 19:45:36 +0000 (14:45 -0500)
commit83289665200b6b9212e0ff14e274b2c431a2e1fa
treebca25e1dc841e08664a539aff6808048fcfa543a
parent9dd3965e96d1f31f0d9303d503bbd12129cfe92b
[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
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-error.c