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