[llvm] [RISC-V] Only emit multiples of 16 as immediate for cm.push (PR #84935)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 10:57:25 PDT 2024


================
@@ -3,7 +3,7 @@
 define ptr @func(ptr %s, i32 %_c, ptr %incdec.ptr, i1 %0, i8 %conv14) #0 {
 ; RV32-LABEL: func:
 ; RV32:       # %bb.0: # %entry
-; RV32-NEXT:    cm.push {ra, s0-s1}, -24
+; RV32-NEXT:    cm.push {ra, s0-s1}, -32
 ; RV32-NEXT:    .cfi_def_cfa_offset 24
----------------
topperc wrote:

Aren't these cfi directives wrong, since the stack pointer was moved by 32 not 24?

https://github.com/llvm/llvm-project/pull/84935


More information about the llvm-commits mailing list