[PowerPC] The builtins load8r and store8r are Power 7 plus.
authorStefan Pintilie <stefanp@ca.ibm.com>
Tue, 28 Sep 2021 19:44:30 +0000 (14:44 -0500)
committerStefan Pintilie <stefanp@ca.ibm.com>
Wed, 29 Sep 2021 19:34:40 +0000 (14:34 -0500)
commitfb4e44c4e7daaaa1d2776e76d43566b0db264f30
tree3a4dddc43c5d92a58c80d7450045cefa98ff8ef4
parent7dffb8b4da530d481977e31f439a92c5f6f2174a
[PowerPC] The builtins load8r and store8r are Power 7 plus.

This patch makes sure that the builtins __builtin_ppc_load8r and
__ builtin_ppc_store8r are only available for Power 7 and up.
Currently the builtins seem to produce incorrect code if used for
Power 6 or before.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D110653
clang/lib/Basic/Targets/PPC.cpp
clang/lib/Basic/Targets/PPC.h
clang/lib/Sema/SemaChecking.cpp
clang/test/Driver/ppc-isa-features.cpp
llvm/lib/Target/PowerPC/PPC.td
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCSubtarget.cpp
llvm/lib/Target/PowerPC/PPCSubtarget.h