[clang] [llvm] [PPC] Implement BCD assist builtins (PR #101390)
Qiu Chaofan via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 19:08:22 PDT 2024
================
@@ -515,6 +515,16 @@ TARGET_BUILTIN(__builtin_altivec_vctzh, "V8UsV8Us", "", "power9-vector")
TARGET_BUILTIN(__builtin_altivec_vctzw, "V4UiV4Ui", "", "power9-vector")
TARGET_BUILTIN(__builtin_altivec_vctzd, "V2ULLiV2ULLi", "", "power9-vector")
+// P7 BCD builtins.
+TARGET_BUILTIN(__builtin_cdtbcd, "UiUi", "", "isa-v206-instructions")
+TARGET_BUILTIN(__builtin_cbcdtd, "UiUi", "", "isa-v206-instructions")
+TARGET_BUILTIN(__builtin_addg6s, "UiUiUi", "", "isa-v206-instructions")
----------------
ecnelises wrote:
It's surprising that `__builtin_xxx` and `__builtin_ppc_xxx` has difference in signature. Does XL have these?
https://github.com/llvm/llvm-project/pull/101390
More information about the llvm-commits
mailing list