summaryrefslogtreecommitdiffhomepage
path: root/ir/be/riscv/riscv_cconv.c
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2021-04-01 15:33:21 +0200
committerAndreas Fried <andreas.fried@kit.edu>2021-04-06 15:33:42 +0200
commit6dfeab4016d89fb2546d7772d52b84facdcb0f7b (patch)
tree42ca9aac28f163edf272d59407e62c7f973fa8b1 /ir/be/riscv/riscv_cconv.c
parentfa10c7c7db0b1d57220a0d55fe8bbecce751f794 (diff)
Rename register FP to S0.
S0 is the name preferred by GNU tools, and the only name accepted by the bare-metal assembler (riscv{32,64}-unknown-elf-as). This gives us less descriptive register names, but more portability.
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;
}