From bbca392a7f31bb76f024481292d900618988e780 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Wed, 15 Sep 2021 14:42:22 +0100 Subject: [PATCH] [RISCV][compiler-rt] Move RV64 __riscv_restore_1/0 directives next to labels This looks like it was copied from the RV32 version and not properly updated. This has no functional effect but is not good style. --- compiler-rt/lib/builtins/riscv/restore.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler-rt/lib/builtins/riscv/restore.S b/compiler-rt/lib/builtins/riscv/restore.S index 12f0d33..60427a7 100644 --- a/compiler-rt/lib/builtins/riscv/restore.S +++ b/compiler-rt/lib/builtins/riscv/restore.S @@ -143,10 +143,6 @@ __riscv_restore_4: .type __riscv_restore_3,@function .globl __riscv_restore_2 .type __riscv_restore_2,@function - .globl __riscv_restore_1 - .type __riscv_restore_1,@function - .globl __riscv_restore_0 - .type __riscv_restore_0,@function __riscv_restore_3: __riscv_restore_2: ld s2, 0(sp) @@ -154,6 +150,10 @@ __riscv_restore_2: addi sp, sp, 16 // fallthrough into __riscv_restore_1/0 + .globl __riscv_restore_1 + .type __riscv_restore_1,@function + .globl __riscv_restore_0 + .type __riscv_restore_0,@function __riscv_restore_1: __riscv_restore_0: ld s0, 0(sp) -- 2.7.4