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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [machine/] [rx/] [strcmp.S] - Blame information for rev 345

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
        .file   "strcmp.S"
2
 
3
        .section .text
4
 
5
        .global  _strcmp
6
        .type    _strcmp,@function
7
_strcmp:
8
        mov     #-1, r3         ; Strictly speaking this is incorrect, but I doubt if anyone will ever know.
9
        scmpu                   ; Perform the string comparison
10
        bnc     1f              ; If Carry is not set skip over
11
        scne.L  r1              ; Set result based on Z flag
12
        rts                     ;
13
1:                              ;
14
        mov     #-1,r1          ; Carry not set, result should be negative
15
        rts                     ;

powered by: WebSVN 2.1.0

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