repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial revision
[binutils.git]
/
gas
/
testsuite
/
gas
/
h8300
/
cmpsi2.s
blob
ef7f03aa92b764dd2084d5357aa8f4a2a083a704
1
# 1 "libgcc1.S"
2
;; libgcc1 routines for the Hitachi h8
/
300
cpu.
3
;; Contributed by Steve Chamberlain.
4
;; sac@cygnus.com
5
.section .text
6
.align 2
7
.global ___cmpsi2
8
___cmpsi2
:
9
cmp.w
r2
,
r0
10
bne
.L2
11
cmp.w
r3
,
r1
12
bne
.L2
13
mov.w
#1,r0
14
rts
15
.L2:
16
cmp.w
r0
,
r2
17
bgt
.L4
18
bne
.L3
19
cmp.w
r1
,
r3
20
bls
.L3
21
.L4:
22
sub.
w
r0
,
r0
23
rts
24
.L3:
25
mov.w
#2,r0
26
.L5:
27
rts
28
.end