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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [machine/] [rx/] [strcmp.S] - Blame information for rev 301

Go to most recent revision | 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.