From fd6942ab427a295ac359717e9027f5d18451faf3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 26 Oct 2009 10:05:23 +0000 Subject: 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. --- newlib/libc/machine/rx/strcmp.S | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 newlib/libc/machine/rx/strcmp.S (limited to 'newlib/libc/machine/rx/strcmp.S') diff --git a/newlib/libc/machine/rx/strcmp.S b/newlib/libc/machine/rx/strcmp.S new file mode 100644 index 000000000..397415bb4 --- /dev/null +++ b/newlib/libc/machine/rx/strcmp.S @@ -0,0 +1,15 @@ + .file "strcmp.S" + + .section .text + + .global _strcmp + .type _strcmp,@function +_strcmp: + mov #-1, r3 ; Strictly speaking this is incorrect, but I doubt if anyone will ever know. + 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 ; -- cgit v1.2.3