[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)
Lei Huang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 24 10:55:42 PDT 2025
================
@@ -567,6 +567,12 @@ TARGET_BUILTIN(__builtin_altivec_vextsh2w, "V4SiV8Ss", "", "power9-vector")
TARGET_BUILTIN(__builtin_altivec_vextsh2d, "V2SLLiV8Ss", "", "power9-vector")
TARGET_BUILTIN(__builtin_altivec_vextsw2d, "V2SLLiV4Si", "", "power9-vector")
+// P9 Binary-coded decimal (BCD) builtins.
+TARGET_BUILTIN(__builtin_ppc_national2packed, "V16UcV16UcUc", "t", "power9-vector")
+TARGET_BUILTIN(__builtin_ppc_packed2national, "V16UcV16Uc", "", "power9-vector")
+TARGET_BUILTIN(__builtin_ppc_packed2zoned, "V16UcV16UcUc", "t", "power9-vector")
+TARGET_BUILTIN(__builtin_ppc_zoned2packed, "V16UcV16UcUc", "t", "power9-vector")
----------------
lei137 wrote:
nit: can we move these to just below `// P8 BCD builtins.` so that we have all the bcd builtin def together?
https://github.com/llvm/llvm-project/pull/142723
More information about the cfe-commits
mailing list