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
Automatic date update in version.in
[binutils-gdb.git]
/
sim
/
testsuite
/
cris
/
asm
/
orm.ms
blob
f2bdaae255e15a32a3ac100a407533295bd7136e
1
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2
# output: 3\n3\nffff\nffffffff\n7c33f7db\nffff0003\n3\nfedaffff\n7813f7db\n3\n3\nfeb\n781344db\n
3
4
.include "testutils.inc"
5
.data
6
x:
7
.dword 2,1,0xff0f,-1,0x5432f789
8
.word 2,1,0xff5f,0xf789
9
.byte 2,1,0x4a,0x89
10
11
start
12
moveq 1,r3
13
move.d x,r5
14
or.d [r5+],r3
15
dumpr3 ; 3
16
17
moveq 2,r3
18
or.d [r5],r3
19
addq 4,r5
20
dumpr3 ; 3
21
22
move.d 0xf0ff,r3
23
or.d [r5+],r3
24
dumpr3 ; ffff
25
26
moveq -1,r3
27
or.d [r5+],r3
28
dumpr3 ; ffffffff
29
30
move.d 0x78134452,r3
31
or.d [r5+],r3
32
dumpr3 ; 7c33f7db
33
34
move.d 0xffff0001,r3
35
or.w [r5+],r3
36
dumpr3 ; ffff0003
37
38
moveq 2,r3
39
or.w [r5],r3
40
addq 2,r5
41
test_move_cc 0 0 0 0
42
dumpr3 ; 3
43
44
move.d 0xfedaffaf,r3
45
or.w [r5+],r3
46
test_move_cc 1 0 0 0
47
dumpr3 ; fedaffff
48
49
move.d 0x78134452,r3
50
or.w [r5+],r3
51
test_move_cc 1 0 0 0
52
dumpr3 ; 7813f7db
53
54
moveq 1,r3
55
or.b [r5+],r3
56
test_move_cc 0 0 0 0
57
dumpr3 ; 3
58
59
moveq 2,r3
60
or.b [r5],r3
61
addq 1,r5
62
test_move_cc 0 0 0 0
63
dumpr3 ; 3
64
65
move.d 0xfa3,r3
66
or.b [r5+],r3
67
test_move_cc 1 0 0 0
68
dumpr3 ; feb
69
70
move.d 0x78134453,r3
71
or.b [r5],r3
72
test_move_cc 1 0 0 0
73
dumpr3 ; 781344db
74
75
quit