OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [h8300/] [cmpsi2.s] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
# 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.