projects
/
releases.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GNU Linux-libre 6.7.9-gnu
[releases.git]
/
arch
/
riscv
/
kernel
/
tests
/
module_test
/
test_set32.S
1
/* SPDX-License-Identifier: GPL-2.0 */
2
/*
3
* Copyright (C) 2023 Rivos Inc.
4
*/
5
6
.text
7
.global test_set32
8
test_set32:
9
lw a0, set32
10
la t0, set32
11
#ifndef CONFIG_32BIT
12
slli t0, t0, 32
13
srli t0, t0, 32
14
#endif
15
sub a0, a0, t0
16
ret
17
.data
18
set32:
19
.reloc set32, R_RISCV_SET32, set32
20
.word 0