Debian Codegraph @

arch/riscv/kernel/tests/module_test/test_sub64.S

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2023 Rivos Inc.
4 */
5
6 .text
7 .global test_sub64
8 test_sub64:
9 #ifdef CONFIG_32BIT
10 lw a0, sub64
11 #else
12 ld a0, sub64
13 #endif
14 addi a0, a0, -32
15 ret
16 first:
17 .space 32
18 second:
19
20 .data
21 sub64:
22 .reloc sub64, R_RISCV_ADD64, second
23 .reloc sub64, R_RISCV_SUB64, first
24 .word 0
25 .word 0