about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/power6
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/power6
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/power6')
-rw-r--r--sysdeps/powerpc/powerpc32/power6/memset.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc32/power6/memset.S b/sysdeps/powerpc/powerpc32/power6/memset.S
index 4b18fa7912..445fa44b1a 100644
--- a/sysdeps/powerpc/powerpc32/power6/memset.S
+++ b/sysdeps/powerpc/powerpc32/power6/memset.S
@@ -48,7 +48,7 @@ L(_memset):
 	ble-	cr1, L(small)
 /* Align to word boundary.  */
 	cmplwi	cr5, rLEN, 31
-	insrdi	rCHR, rCHR, 8, 48	/* Replicate byte to halfword.  */
+	insrwi	rCHR, rCHR, 8, 16	/* Replicate byte to halfword.  */
 	beq+	L(aligned)
 	mtcrf	0x01, rMEMP0
 	subfic	rALIGN, rALIGN, 4
@@ -64,7 +64,7 @@ L(g0):
 /* Handle the case of size < 31.  */
 L(aligned):
 	mtcrf	0x01, rLEN
-	insrdi	rCHR, rCHR, 16, 32	/* Replicate halfword to word.  */
+	insrwi	rCHR, rCHR, 16, 0	/* Replicate halfword to word.  */
 	ble	cr5, L(medium)
 /* Align to 32-byte boundary.  */
 	andi.	rALIGN, rMEMP, 0x1C