[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)
Lei Huang via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 08:25:44 PDT 2025
================
@@ -294,6 +294,34 @@ Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
return Builder.CreateCall(F, Ops, "");
}
+ // BCD convert builtins for P9
+ case PPC::BI__builtin_ppc_national2packed:
+ case PPC::BI__builtin_ppc_packed2zoned:
+ case PPC::BI__builtin_ppc_zoned2packed: {
+ SmallVector<Value *, 3> Ops;
+ // Zero extending unsigned char to 32 bits by using Int32ty
----------------
lei137 wrote:
Always opt to doc the intention of the code vs just doc what the code does.
```suggestion
// Zero extend unsigned char to Int32ty to match BE intrinsic definition.
```
https://github.com/llvm/llvm-project/pull/142723
More information about the llvm-commits
mailing list