From c102b41c2bb29b8fe91875f7395c70f033ea7250 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 28 Nov 2002 23:52:24 +0000 Subject: [PATCH] Define HAVE_CMOV. --- nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S | 11 +++++++++-- nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S b/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S index 2dde246..8d682d9 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S +++ b/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S @@ -537,8 +537,15 @@ __pthread_rwlock_unlock: movl $1, %ecx leal WRITERS_WAKEUP(%edi), %eax cmpl $0, WRITERS_QUEUED(%edi) - cmovne %ecx, %edx - cmovne %eax, %ebx +#ifdef HAVE_CMOV + cmovnel %ecx, %edx + cmovnel %eax, %ebx +#else + je 0f + movl %ecx, %edx + movl %eax, %ebx +0: +#endif movl $SYS_futex, %eax int $0x80 diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S b/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S index 6f4a830..cc47163 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S +++ b/nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S @@ -17,4 +17,5 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#define HAVE_CMOV 1 #include "../i486/lowlevelrwlock.S" -- 2.7.4