S390: Use 64bit instruction to check for copies of > 1MB with mvcle.
authorStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 24 May 2016 08:39:13 +0000 (10:39 +0200)
committerStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 24 May 2016 08:39:13 +0000 (10:39 +0200)
commit074b0f27d9b9cdfb58c5c7e7f4129546084582b2
tree60ec9037761a7cff348540574d5d0f3cfea71665
parent04bb21ac93e90d7696bcaf8febe2b2dd2d83585a
S390: Use 64bit instruction to check for copies of > 1MB with mvcle.

The __memcpy_default variant on s390 64bit calculates the number of
256byte blocks in a 64bit register and checks, if they exceed 1MB
to jump to mvcle. Otherwise a mvc-loop is used. The compare-instruction
only checks a 32bit value.
This patch uses a 64bit compare.

ChangeLog:

* sysdeps/s390/s390-64/memcpy.S (memcpy):
Use cghi instead of chi to compare 64bit value.
ChangeLog
sysdeps/s390/s390-64/memcpy.S