[all-commits] [llvm/llvm-project] 057f3e: [RISCV] Use bits<5> for rs1 in c.sspopchk and c.ss...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Sep 15 16:57:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 057f3ee1b4f32ccc348f1c64142dcf0e4c5e9b69
      https://github.com/llvm/llvm-project/commit/057f3ee1b4f32ccc348f1c64142dcf0e4c5e9b69
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoZicfiss.td

  Log Message:
  -----------
  [RISCV] Use bits<5> for rs1 in c.sspopchk and c.sspush. NFC (#223856)

These instructions are encoded so that bits 11-7 match the register they
operate on. We can put 1 or 5 in rs1 and then assign rs1 to bits 11-7.
This match c.addi16sp which only allows SP.



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