[PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL...
authorVictor Huang <wei.huang@ibm.com>
Tue, 13 Jul 2021 19:57:08 +0000 (14:57 -0500)
committerVictor Huang <wei.huang@ibm.com>
Tue, 13 Jul 2021 21:55:09 +0000 (16:55 -0500)
commit18c19414eb70578d4c487d6f4b0f438aead71d6a
treed532a53615fc74cca7145dbd093dcdd92a8675a4
parentf2b5e438aa3620cd60d115cad8dcb39cc417c8a8
[PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL compatibility

This patch is in a series of patches to provide builtins for compatibility
with the XL compiler. This patch adds the builtins and instrisics for compare
and multiply related operations.

Reviewed By: nemanjai, #powerpc

Differential revision: https://reviews.llvm.org/D102875
15 files changed:
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Basic/Targets/PPC.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-multiply-64bit-only.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-multiply.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-error.c [new file with mode: 0644]
clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.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-compare-64bit-only.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-compare.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-multiply-64bit-only.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-multiply.ll [new file with mode: 0644]