Issue 167391
Summary [RISCV] Missing cfi_def_cfa_offset?
Labels backend:RISC-V
Assignees
Reporter topperc
    For some stack adjustmnets, the RISC-V backend may emit a 2 adjustments of the stack pointer without a cfi_def_cfa_offset between them. This occurs when the stack adjust is roughly between +/-2048 and +/-4096. In that case we use 2 ADDIs instead of LUI+ADDI+ADD. gcc does something similar, but issues a cfi_def_cfa_offset between them. Should LLVM be emitting a cfi_def_cfa_offset

Example comparing llvm and gcc https://godbolt.org/z/eh63zn7b1

CC: @lenary @ilovepi @MaskRay @preames 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to