Skip to content

Commit

Permalink
[compiler-rt][RISC-V] Save/Restore for E goes with ABI
Browse files Browse the repository at this point in the history
When compiling for the ILP32E/LP64E ABIs, even on a RISC-V machine with
`i`, we should be using the ILP32E/LP64E save/restore routines, so use
the right preprocessor macro.
  • Loading branch information
lenary committed Jun 13, 2024
1 parent 5c9352e commit 4f8212c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/lib/builtins/riscv/restore.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#if __riscv_xlen == 32

#ifndef __riscv_32e
#ifndef __riscv_abi_rve

.globl __riscv_restore_12
.type __riscv_restore_12,@function
Expand Down Expand Up @@ -109,7 +109,7 @@ __riscv_restore_0:

#elif __riscv_xlen == 64

#ifndef __riscv_64e
#ifndef __riscv_abi_rve

.globl __riscv_restore_12
.type __riscv_restore_12,@function
Expand Down
4 changes: 2 additions & 2 deletions compiler-rt/lib/builtins/riscv/save.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#if __riscv_xlen == 32

#ifndef __riscv_32e
#ifndef __riscv_abi_rve

.globl __riscv_save_12
.type __riscv_save_12,@function
Expand Down Expand Up @@ -115,7 +115,7 @@ __riscv_save_0:

#elif __riscv_xlen == 64

#ifndef __riscv_64e
#ifndef __riscv_abi_rve

.globl __riscv_save_12
.type __riscv_save_12,@function
Expand Down

0 comments on commit 4f8212c

Please sign in to comment.