repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
bfd/ELF: slightly "better" file alignment for object files
[binutils-gdb.git]
/
sim
/
testsuite
/
cris
/
asm
/
addi.ms
blob
2fa2723ef822154b69b03fff8c73897a6e381d84
1
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2
# output: 0\n1\n2\n4\nbe02460f\n69d035a6\nc16c14d4\n
3
4
.include "testutils.inc"
5
start
6
moveq 0,r3
7
moveq 0,r4
8
clearf zcvn
9
addi r4.b,r3
10
test_cc 0 0 0 0
11
dumpr3 ; 0
12
13
moveq 0,r3
14
moveq 1,r4
15
setf zcvn
16
addi r4.b,r3
17
test_cc 1 1 1 1
18
dumpr3 ; 1
19
20
moveq 0,r3
21
moveq 1,r4
22
setf cv
23
clearf zn
24
addi r4.w,r3
25
test_cc 0 0 1 1
26
dumpr3 ; 2
27
28
moveq 0,r3
29
moveq 1,r4
30
clearf cv
31
setf zn
32
addi r4.d,r3
33
test_cc 1 1 0 0
34
dumpr3 ; 4
35
36
move.d 0x12345678,r3
37
move.d 0xabcdef97,r4
38
clearf cn
39
setf zv
40
addi r4.b,r3
41
test_cc 0 1 1 0
42
dumpr3 ; be02460f
43
44
move.d 0x12345678,r3
45
move.d 0xabcdef97,r4
46
setf cn
47
clearf zv
48
addi r4.w,r3
49
test_cc 1 0 0 1
50
dumpr3 ; 69d035a6
51
52
move.d 0x12345678,r3
53
move.d 0xabcdef97,r4
54
addi r4.d,r3
55
dumpr3 ; c16c14d4
56
57
quit