[llvm] [X86] Make ISD::ROTL/ROTR vXi16 vector rotates legal on VBMI2 targets (PR #184768)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 17:50:48 PST 2026
================
@@ -12495,6 +12495,55 @@ let Predicates = [HasVBMI2, NoVLX] in {
defm : vbmi2_funnel_novlx<v32i16_info, v8i16x_info, VPSHRDWZrri, X86VShrd, VPSHRDVWZr, fshr, 1>;
}
+// Use VPSHLD/VPSHRD to implement rotations.
+multiclass vbmi2_rotate<X86VectorVTInfo _, Instruction InstrStrRI, SDNode OpNodeRI,
+ Instruction InstrStrRR, SDNode OpNodeRR> {
----------------
phoebewang wrote:
Indention
https://github.com/llvm/llvm-project/pull/184768
More information about the llvm-commits
mailing list