[all-commits] [llvm/llvm-project] 08dd64: [RISC-V] Bad immediate value for Zcmp instructions...
Nemanja Ivanovic via All-commits
all-commits at lists.llvm.org
Tue Mar 12 08:27:11 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 08dd645c15a091a53313e278d8f3c090e7c385d1
https://github.com/llvm/llvm-project/commit/08dd645c15a091a53313e278d8f3c090e7c385d1
Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
Date: 2024-03-12 (Tue, 12 Mar 2024)
Changed paths:
A llvm/test/CodeGen/RISCV/zcmp-additional-stack.ll
Log Message:
-----------
[RISC-V] Bad immediate value for Zcmp instructions with E extension (#84925)
When we are using the Zcmp extension together with the E extension in
32-bit mode and we need to spill both callee-saved registers as well as
needing a couple of 32-bit stack slots, we emit a meaningless stack
adjustment with cm.push/cm.popret. Furthermore this leads to the stack
slot for the ra being clobbered so control returns to a random location.
This is just a pre-commit test so that the PR for the fix shows the
difference in code generation.
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