about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/power7/strchrnul.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-05-22 14:48:38 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-05-26 09:09:21 -0500
commitd298c41635ce7f2dc7c3eccc842fe3aa754c0c8e (patch)
treea2c2b8a6875e37eba8a3723a7fc0c47001cdce51 /sysdeps/powerpc/powerpc32/power7/strchrnul.S
parentb60ea6fff5cca4da517ec9cce3af8f3e94d6ac65 (diff)
downloadglibc-d298c41635ce7f2dc7c3eccc842fe3aa754c0c8e.tar.gz
glibc-d298c41635ce7f2dc7c3eccc842fe3aa754c0c8e.tar.xz
glibc-d298c41635ce7f2dc7c3eccc842fe3aa754c0c8e.zip
PowerPC: Remove 64 bits instructions in PPC32 code
This patch replaces the insrdi by insrwi in powerpc32 assembly.
Diffstat (limited to 'sysdeps/powerpc/powerpc32/power7/strchrnul.S')
-rw-r--r--sysdeps/powerpc/powerpc32/power7/strchrnul.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc32/power7/strchrnul.S b/sysdeps/powerpc/powerpc32/power7/strchrnul.S
index ece8237453..dcc7620510 100644
--- a/sysdeps/powerpc/powerpc32/power7/strchrnul.S
+++ b/sysdeps/powerpc/powerpc32/power7/strchrnul.S
@@ -27,8 +27,8 @@ ENTRY (__strchrnul)
 	clrrwi	r8,r3,2	      /* Align the address to word boundary.  */
 
 	/* Replicate byte to word.  */
-	insrdi	r4,r4,8,48
-	insrdi	r4,r4,16,32
+	insrwi  r4,r4,8,16
+	insrwi  r4,r4,16,0
 
 	rlwinm	r6,r3,3,27,28 /* Calculate padding.  */
 	lwz	r12,0(r8)     /* Load word from memory.  */