repo.or.cz
/
qemu
/
mdroth.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
qapi: dealloc visitor, fix premature free and iteration logic
[qemu/mdroth.git]
/
tests
/
xtensa
/
test_nsa.S
blob
a5fe5debe4eb7a237f4f287eef72a7b3dd0d88cd
1
.include "macros.inc"
2
3
test_suite nsa
4
5
test nsa
6
movi a2, 0
7
movi a3, 31
8
nsa a4, a2
9
assert eq, a3, a4
10
11
movi a2, 0xffffffff
12
movi a3, 31
13
nsa a4, a2
14
assert eq, a3, a4
15
16
movi a2, 1
17
movi a3, 30
18
nsa a2, a2
19
assert eq, a3, a2
20
21
movi a2, 0xfffffffe
22
movi a3, 30
23
nsa a2, a2
24
assert eq, a3, a2
25
26
movi a2, 0x5a5a5a5a
27
movi a3, 0
28
nsa a4, a2
29
assert eq, a3, a4
30
31
movi a2, 0xa5a5a5a5
32
movi a3, 0
33
nsa a4, a2
34
assert eq, a3, a4
35
test_end
36
37
test nsau
38
movi a2, 0
39
movi a3, 32
40
nsau a4, a2
41
assert eq, a3, a4
42
43
movi a2, 0xffffffff
44
movi a3, 0
45
nsau a4, a2
46
assert eq, a3, a4
47
48
movi a2, 1
49
movi a3, 31
50
nsau a2, a2
51
assert eq, a3, a2
52
53
movi a2, 0x5a5a5a5a
54
movi a3, 1
55
nsau a2, a2
56
assert eq, a3, a2
57
test_end
58
59
test_suite_end