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_sext.S
blob
04dc6500c1ad544bad9da0746f60639646529ff0
1
.include "macros.inc"
2
3
test_suite sext
4
5
test sext
6
movi a2, 0xffffff5a
7
movi a3, 0x0000005a
8
sext a4, a2, 7
9
assert eq, a3, a4
10
11
movi a2, 0x000000a5
12
movi a3, 0xffffffa5
13
sext a4, a2, 7
14
assert eq, a3, a4
15
16
movi a2, 0xfffffaa5
17
movi a3, 0x000000a5
18
sext a4, a2, 8
19
assert eq, a3, a4
20
21
movi a2, 0x0000055a
22
movi a3, 0xffffff5a
23
sext a4, a2, 8
24
assert eq, a3, a4
25
26
movi a2, 0xffff5a5a
27
movi a3, 0x00005a5a
28
sext a4, a2, 15
29
assert eq, a3, a4
30
31
movi a2, 0x0000a5a5
32
movi a3, 0xffffa5a5
33
sext a4, a2, 15
34
assert eq, a3, a4
35
36
movi a2, 0x00055a5a
37
movi a3, 0xffff5a5a
38
sext a4, a2, 16
39
assert eq, a3, a4
40
41
movi a2, 0x000aa5a5
42
movi a3, 0x0000a5a5
43
sext a4, a2, 16
44
assert eq, a3, a4
45
46
movi a2, 0x005a5a5a
47
movi a3, 0xffda5a5a
48
sext a4, a2, 22
49
assert eq, a3, a4
50
51
movi a2, 0xffa5a5a5
52
movi a3, 0x0025a5a5
53
sext a4, a2, 22
54
assert eq, a3, a4
55
test_end
56
57
test sext_same_rs
58
movi a2, 0xffffff5a
59
movi a3, 0x0000005a
60
sext a2, a2, 7
61
assert eq, a3, a2
62
63
movi a2, 0x000000a5
64
movi a3, 0xffffffa5
65
sext a2, a2, 7
66
assert eq, a3, a2
67
test_end
68
69
test_suite_end