[PowerPC] Add PowerPC cmpb builtin and emit target indepedent code for XL compatibility
authorVictor Huang <wei.huang@ibm.com>
Tue, 20 Jul 2021 16:51:42 +0000 (11:51 -0500)
committerVictor Huang <wei.huang@ibm.com>
Tue, 20 Jul 2021 18:06:22 +0000 (13:06 -0500)
commit1a762f93f81640768dc9e9d933780fff32cfa639
tree9ea1bf28a2f78ad7fbeb56c3f40e0930577b3233
parent1f3e90e12894b1f91c5e857dcd358eb689e2d262
[PowerPC] Add PowerPC cmpb builtin and emit target indepedent code for XL compatibility

This patch is in a series of patches to provide builtins for compatibility
with the XL compiler. This patch add the builtin and emit target independent
code for __cmpb.

Reviewed By: nemanjai, #powerpc

Differential revision: https://reviews.llvm.org/D105194
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Basic/Targets/PPC.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-compare.c [new file with mode: 0644]
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-cmpb-32.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-cmpb-64.ll [new file with mode: 0644]