[all-commits] [llvm/llvm-project] 64510c: [PPC] Implement BCD assist builtins (#101390)
Lei Huang via All-commits
all-commits at lists.llvm.org
Wed Aug 7 10:39:10 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 64510c1411aff754e1b92659987846aba3a14d53
https://github.com/llvm/llvm-project/commit/64510c1411aff754e1b92659987846aba3a14d53
Author: Lei Huang <lei at ca.ibm.com>
Date: 2024-08-07 (Wed, 07 Aug 2024)
Changed paths:
M clang/include/clang/Basic/BuiltinsPPC.def
M clang/lib/Basic/Targets/PPC.cpp
M clang/lib/Sema/SemaPPC.cpp
A clang/test/CodeGen/PowerPC/builtins-bcd-assist.c
A clang/test/CodeGen/PowerPC/builtins-ppc-bcd-assist.c
M llvm/include/llvm/IR/IntrinsicsPowerPC.td
M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
M llvm/lib/Target/PowerPC/PPCInstrInfo.td
A llvm/test/CodeGen/PowerPC/builtins-bcd-assist.ll
A llvm/test/CodeGen/PowerPC/builtins-ppc-bcd-assist.ll
Log Message:
-----------
[PPC] Implement BCD assist builtins (#101390)
Implement BCD assist builtins for XL and GCC compatibility.
GCC compat:
```
unsigned int __builtin_cdtbcd (unsigned int);
unsigned int __builtin_cbcdtd (unsigned int);
unsigned int __builtin_addg6s (unsigned int, unsigned int);
```
64BIT XL compat:
```
long long __cdtbcd (long long);
long long __cbcdtd (long long);
long long __addg6s (long long source1, long long source2)
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list