summaryrefslogtreecommitdiffhomepage
path: root/ir/be/riscv/riscv_cconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/be/riscv/riscv_cconv.c')
-rw-r--r--ir/be/riscv/riscv_cconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/riscv/riscv_cconv.c b/ir/be/riscv/riscv_cconv.c
index 3b5e8ab..23a3885 100644
--- a/ir/be/riscv/riscv_cconv.c
+++ b/ir/be/riscv/riscv_cconv.c
@@ -114,7 +114,7 @@ void riscv_determine_calling_convention(riscv_calling_convention_t *const cconv,
if (irg != NULL) {
be_irg_t *birg = be_birg_from_irg(irg);
if (!omit_fp)
- rbitset_clear(birg->allocatable_regs, REG_FP);
+ rbitset_clear(birg->allocatable_regs, REG_S0);
}
cconv->omit_fp = omit_fp;
}