glibc/sysdeps/powerpc/powerpc32/power6
Joseph Myers 78b7adbaea Fix cmpli usage in power6 memset.
Building glibc for powerpc64 with recent (2.27.51.20161012) binutils,
with multi-arch enabled, I get the error:

../sysdeps/powerpc/powerpc64/power6/memset.S: Assembler messages:
../sysdeps/powerpc/powerpc64/power6/memset.S:254: Error: operand out of range (5 is not between 0 and 1)
../sysdeps/powerpc/powerpc64/power6/memset.S:254: Error: operand out of range (128 is not between 0 and 31)
../sysdeps/powerpc/powerpc64/power6/memset.S:254: Error: missing operand

Indeed, cmpli is documented as a four-operand instruction, and looking
at nearby code it seems likely cmpldi was intended.  This patch fixes
this powerpc64 code accordingly, and makes a corresponding change to
the powerpc32 code.

Tested for powerpc, powerpc64 and powerpc64le by Tulio Magno Quites
Machado Filho

	* sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
	instead of cmpli.
	* sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
	instead of cmpli.
2016-10-25 15:54:16 +00:00
..
fpu Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
multiarch PowerPC: Adjust multiarch Implies for PowerPC32 2013-12-06 05:47:05 -06:00
Implies powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
memcpy.S powerpc: Rearrange cfi_offset calls 2016-03-11 11:31:58 -03:00
memset.S Fix cmpli usage in power6 memset. 2016-10-25 15:54:16 +00:00