repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hw/sd: Move sdcard legacy API to 'hw/sd/sdcard_legacy.h'
[qemu/ar7.git]
/
tests
/
tcg
/
xtensa
/
test_nsa.S
blob
0af7d1f50d5643ab00ae68ffd9ba098ae3d14cd4
1
#include "macros.inc"
2
3
test_suite nsa
4
5
#if XCHAL_HAVE_NSA
6
7
test nsa
8
movi a2, 0
9
movi a3, 31
10
nsa a4, a2
11
assert eq, a3, a4
12
13
movi a2, 0xffffffff
14
movi a3, 31
15
nsa a4, a2
16
assert eq, a3, a4
17
18
movi a2, 1
19
movi a3, 30
20
nsa a2, a2
21
assert eq, a3, a2
22
23
movi a2, 0xfffffffe
24
movi a3, 30
25
nsa a2, a2
26
assert eq, a3, a2
27
28
movi a2, 0x5a5a5a5a
29
movi a3, 0
30
nsa a4, a2
31
assert eq, a3, a4
32
33
movi a2, 0xa5a5a5a5
34
movi a3, 0
35
nsa a4, a2
36
assert eq, a3, a4
37
test_end
38
39
test nsau
40
movi a2, 0
41
movi a3, 32
42
nsau a4, a2
43
assert eq, a3, a4
44
45
movi a2, 0xffffffff
46
movi a3, 0
47
nsau a4, a2
48
assert eq, a3, a4
49
50
movi a2, 1
51
movi a3, 31
52
nsau a2, a2
53
assert eq, a3, a2
54
55
movi a2, 0x5a5a5a5a
56
movi a3, 1
57
nsau a2, a2
58
assert eq, a3, a2
59
test_end
60
61
#endif
62
63
test_suite_end