[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

Lei Huang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 10:04:34 PDT 2025


================
@@ -3455,6 +3480,21 @@ include "PPCInstr64Bit.td"
 include "PPCInstrVSX.td"
 include "PPCInstrHTM.td"
 
+def : Pat<(PPCbcds v4i32:$Shift, v16i8:$Src, i32:$PS),
+          (BCDS_rec $Shift, $Src, $PS)>;
----------------
lei137 wrote:

BCDS_res is defined in `PPCInstrAltivec.td`. These anonymous def should be added there under the proper section.

https://github.com/llvm/llvm-project/pull/154715


More information about the llvm-commits mailing list