File Index
Files and directories
Sign in
FILE

test_sub64.S

File preview with syntax highlighting.

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