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/] [strncmp.S] - Blame information for rev 262

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
        .file   "strncmp.S"
2
 
3
        .section .text
4
        .global  _strncmp
5
        .type    _strncmp,@function
6
_strncmp:
7
        scmpu                   ; Perform the string comparison
8
        bnc     1f              ; If Carry is not set skip over
9
        scne.L  r1              ; Set result based on Z flag
10
        rts                     ;
11
1:                              ;
12
        mov     #-1,r1          ; Carry not set, result should be negative
13
        rts                     ;

powered by: WebSVN 2.1.0

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