[all-commits] [llvm/llvm-project] 893fa0: [RISC-V] Adjust trampoline code for branch control...

Jesse Huang via All-commits all-commits at lists.llvm.org
Sat Jun 7 08:51:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 893fa062803458bee8e374e0f30e5e2225155a5c
      https://github.com/llvm/llvm-project/commit/893fa062803458bee8e374e0f30e5e2225155a5c
  Author: Jesse Huang <jesse.huang at sifive.com>
  Date:   2025-06-07 (Sat, 07 Jun 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    A llvm/test/CodeGen/RISCV/rv64-trampoline-cfi.ll

  Log Message:
  -----------
  [RISC-V] Adjust trampoline code for branch control flow protection (#141949)

Trampoline will use a alternative sequence when branch CFI is on.
The stack of the test is organized as follow
```
   56 $ra
   44 $a0      f
   36 $a1      p
   32 00038067 jalr  t2
   28 010e3e03 ld    t3, 16(t3)
   24 018e3383 ld    t2, 24(t3)
   20 00000e17 auipc t3, 0
sp+16 00000023 lpad  0
```



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