From 8ee355155102ad7c2e473f179f4879c6e468f19e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 Apr 2001 19:57:49 +0000 Subject: Update. 2001-04-11 David Mosberger * sysdeps/ia64/htonl.S: Drop superfluous "alloc". * sysdeps/ia64/htons.S: Likewise. * sysdeps/ia64/memset.S: Add unwind directives. * sysdeps/ia64/strncpy.S: Likewise. * sysdeps/ia64/strcat.S: Likewise. * sysdeps/ia64/memccpy.S: Add unwind directives. Drop superfluous restore of ar.pfs. * sysdeps/ia64/strchr.S: Likewise. * sysdeps/ia64/memmove.S: Likewise. * sysdeps/ia64/memcpy.S: Likewise. * sysdeps/ia64/memcmp.S: Likewise. * sysdeps/ia64/memchr.S: Likewise. * sysdeps/ia64/strcmp.S: Likewise. * sysdeps/ia64/strlen.S: Likewise. * sysdeps/ia64/strcpy.S: Likewise. * sysdeps/ia64/strncmp.S: Likewise. --- sysdeps/ia64/memccpy.S | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sysdeps/ia64/memccpy.S') diff --git a/sysdeps/ia64/memccpy.S b/sysdeps/ia64/memccpy.S index 589c9ccf16..fbb21e4822 100644 --- a/sysdeps/ia64/memccpy.S +++ b/sysdeps/ia64/memccpy.S @@ -1,6 +1,6 @@ /* Optimized version of the memccpy() function. This file is part of the GNU C Library. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. Contributed by Dan Pop . The GNU C Library is free software; you can redistribute it and/or @@ -37,7 +37,6 @@ #define OP_T_THRES 16 #define OPSIZ 8 -#define saved_pfs r14 #define saved_pr r17 #define saved_lc r18 #define dest r19 @@ -53,15 +52,19 @@ #define value r31 ENTRY(memccpy) - alloc saved_pfs = ar.pfs, 4, 40 - 4, 0, 40 + .prologue + alloc r2 = ar.pfs, 4, 40 - 4, 0, 40 #include "softpipe.h" .rotr r[MEMLAT + 3], tmp1[4], tmp2[4], val[4], tmp3[2], pos0[2] .rotp p[MEMLAT + 6 + 1] mov ret0 = r0 // return NULL if no match + .save pr, saved_pr mov saved_pr = pr // save the predicate registers + .save ar.lc, saved_lc mov saved_lc = ar.lc // save the loop counter + .body mov dest = in0 // dest mov src = in1 // src extr.u char = in2, 0, 8 // char @@ -143,7 +146,6 @@ ENTRY(memccpy) .foundit: (p6) mov ret0 = dest .restore_and_exit: - mov ar.pfs = saved_pfs // restore the PFS mov pr = saved_pr, -1 // restore the predicate registers mov ar.lc = saved_lc // restore the loop counter br.ret.sptk.many b0 @@ -158,7 +160,6 @@ ENTRY(memccpy) shr.u value = value, 8 br.cloop.sptk .l5 ;; mov ret0 = dest - mov ar.pfs = saved_pfs mov pr = saved_pr, -1 mov ar.lc = saved_lc br.ret.sptk.many b0 -- cgit v1.2.3