* sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 14 Mar 2003 05:31:28 +0000 (05:31 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 14 Mar 2003 05:31:28 +0000 (05:31 +0000)
* sysdeps/mips/memset.S: Likewise.
* sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
depending on the ABI.

sysdeps/mips/memcpy.S
sysdeps/mips/memset.S
sysdeps/mips/sys/regdef.h

index 3d49ac976b923776c89188368128c8ea4874521a..c77f1b8d972087b0ff61f472885b1915c7eecebb 100644 (file)
 #  define SWLO swl             /* low part is left in little-endian    */
 #endif
 
+#ifndef t0
+# define t0 a4
+#endif
+#ifndef t1
+# define t1 a5
+#endif
+#ifndef t2
+# define t2 a6
+#endif
+#ifndef t3
+# define t3 a7
+#endif
+
 ENTRY (memcpy)
        .set    noreorder
 
index 7825dea880597b0d2a056c96569bd9cb02fc7609..46811340eca22a1d5886ab07f91b51b6e0e9100c 100644 (file)
 # define SWHI  swr             /* high part is right in little-endian  */
 #endif
 
+#ifndef t0
+# define t0 a4
+#endif
+#ifndef t1
+# define t1 a5
+#endif
+
 ENTRY (memset)
        .set    noreorder
 
index c4df603836af4643ec6134770b5f8a3073dc7adb..f3a0df5ab44f3480f2eebce6744caf740456bcf2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ralf Baechle <ralf@gnu.org>.
 
 #define a1      $5
 #define a2      $6
 #define a3      $7
+#if _MIPS_SIM != _MIPS_SIM_ABI32
+#define a4     $8
+#define a5     $9
+#define a6     $10
+#define a7     $11
+#else /* if _MIPS_SIM == _MIPS_SIM_ABI32 */
 #define t0      $8      /* caller saved */
 #define t1      $9
 #define t2      $10
 #define t3      $11
+#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 #define t4      $12
 #define t5      $13
 #define t6      $14