diff options
author | Nick Clifton <nickc@redhat.com> | 2009-10-26 13:05:23 +0300 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-10-26 13:05:23 +0300 |
commit | fd6942ab427a295ac359717e9027f5d18451faf3 (patch) | |
tree | 72f149db67c42ec819332da8eb5dcc5cd04eb534 /newlib/libc/machine/rx/strncmp.S | |
parent | f7e0cae24b71452eaf452d3799b6c3436d7301f2 (diff) |
newlib:
* configure.host: Add support for RX architecture.
* libc/include/machine/ieeefp.h: Likewise.
* libc/include/machine/setjmp.h: Likewise.
* libc/include/machine/configure.in: Likewise.
* libc/include/machine/configure: Regenerate.
* libc/machine/rx: New directory.
* libc/machine/rx/*: New files to support RX architecture.
libgloss:
* configure.in: Add support for RX sub-directory.
* configure: Regenerate.
* rx: New directory.
* rx/*: New files to support RX architecture.
Diffstat (limited to 'newlib/libc/machine/rx/strncmp.S')
-rw-r--r-- | newlib/libc/machine/rx/strncmp.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/libc/machine/rx/strncmp.S b/newlib/libc/machine/rx/strncmp.S new file mode 100644 index 000000000..929e9cb0a --- /dev/null +++ b/newlib/libc/machine/rx/strncmp.S @@ -0,0 +1,13 @@ + .file "strncmp.S" + + .section .text + .global _strncmp + .type _strncmp,@function +_strncmp: + scmpu ; Perform the string comparison + bnc 1f ; If Carry is not set skip over + scne.L r1 ; Set result based on Z flag + rts ; +1: ; + mov #-1,r1 ; Carry not set, result should be negative + rts ; |