[all-commits] [llvm/llvm-project] bdec4d: [RISCV][P-ext] Only support sshlsat for splat imme...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Mar 6 12:24:37 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdec4da38d72caa3166261c28af283f3a36de734
      https://github.com/llvm/llvm-project/commit/bdec4da38d72caa3166261c28af283f3a36de734
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoP.td
    M llvm/test/CodeGen/RISCV/rvp-ext-rv32.ll
    M llvm/test/CodeGen/RISCV/rvp-ext-rv64.ll

  Log Message:
  -----------
  [RISCV][P-ext] Only support sshlsat for splat immediate shift amounts. (#184886)

Fixes cannot select errors for other types of shift amounts.

I've made a new RISCVISD node that only allows an immediate operand.
It's assumed that the lowering code will only allow valid immediates so
I'm not using a TImmLeaf in the match.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list