repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
binutils
/
ld
/
testsuite
/
ld-h8300
/
relax-4.s
blob
32b5b0604d5b4e36a0601c493c3f2a3ed76ab101
1
; Relaxation is possible for following bit manipulation instructions
2
; BAND
,
BCLR
,
BIAND
,
BILD
,
BIOR
,
BIST
,
BIXOR
,
BLD
,
BNOT
,
BOR
,
BSET
,
BST
,
BTST
,
BXOR
3
.h8300s
4
.globl _start
5
_start
:
6
# s3-s6 aren't valid 16-bit addresses.
7
mov.
b
#0x3,r0l
8
mov.
b
#0x5,r2l
9
;
10
; Relaxation of aa
:
16
11
;
12
bset r0l
,
@s10
:
16
13
bset r2l
,
@s9
:
16
14
btst r2l
,
@s10
:
16
15
btst r0l
,
@s9
:
16
16
17
bset
#5,@s1:16
18
bset
#5,@s2:16
19
bset
#5,@s7:16
20
bset
#5,@s8:16
21
bset
#5,@s9:16
22
bset
#5,@s10:16
23
24
band
#5,@s1:16
25
band
#5,@s2:16
26
band
#5,@s7:16
27
band
#5,@s8:16
28
band
#5,@s9:16
29
band
#5,@s10:16
30
;
31
; Relaxation of aa
:
32
32
;
33
bset r2l
,
@s10
:
32
34
bset r0l
,
@s9
:
32
35
btst r0l
,
@s10
:
32
36
btst r2l
,
@s9
:
32
37
38
bset
#6,@s1:32
39
bset
#6,@s2:32
40
bset
#6,@s3:32
41
bset
#6,@s4:32
42
bset
#6,@s5:32
43
bset
#6,@s6:32
44
bset
#6,@s7:32
45
bset
#6,@s8:32
46
bset
#6,@s9:32
47
bset
#6,@s10:32
48
49
band
#6,@s1:32
50
band
#6,@s2:32
51
band
#6,@s3:32
52
band
#6,@s4:32
53
band
#6,@s5:32
54
band
#6,@s6:32
55
band
#6,@s7:32
56
band
#6,@s8:32
57
band
#6,@s9:32
58
band
#6,@s10:32
59
60
.equ s1,0
61
.equ s2,0x7fff
62
.equ s3,0x8000
63
.equ s4,0xff00
64
.equ s5,0xffff00
65
.equ s6,0xffff7fff
66
.equ s7,0xffff8000
67
.equ s8,0xfffffeff
68
.equ s9,0xffffff00
69
.equ s10,0xffffffff
70
71
.end
72