xref: /linux/arch/riscv/kernel/tests/module_test/test_sub6.S (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2023 Rivos Inc.
4 */
5
6.text
7.global test_sub6
8test_sub6:
9	lb	a0, sub6
10	addi	a0, a0, -32
11	ret
12first:
13	.space 32
14second:
15
16.data
17sub6:
18	.reloc		sub6, R_RISCV_SET6, second
19	.reloc		sub6, R_RISCV_SUB6, first
20	.byte		0
21