summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/tests/module_test/test_sub8.S
blob: ac5d0ec98de327f9605f85f1f929b064c526be85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2023 Rivos Inc.
 */

.text
.global test_sub8
test_sub8:
	lb	a0, sub8
	addi	a0, a0, -32
	ret
first:
	.space 32
second:

.data
sub8:
	.reloc		sub8, R_RISCV_ADD8, second
	.reloc		sub8, R_RISCV_SUB8, first
	.byte		0