ARCv2: update memset() so it could be used without double load/stores
commit296327d3f891053c7ab63065e48965fbf6b710f0
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 20 Jul 2015 14:12:32 +0000 (20 17:12 +0300)
committerWaldemar Brodkorb <wbx@openadk.org>
Wed, 22 Jul 2015 06:04:08 +0000 (22 08:04 +0200)
tree8ec8e3adf97a40eb15ac098c1c245be952f99009
parentc9bf93d68431692808acf3c2c527a6b2735fa254
ARCv2: update memset() so it could be used without double load/stores

Existing version of memset() relies on existence of 64-bit load/stores.
While ARC HS38 may not have those instructions implemented in SoC.

Proposed implementation checks if "-mno-ll64" option was passed to gcc
(for ARCv2 "-mll64" is set implicitly by default) by checking __LL64__
definition and if it is not defined uses 32-bit load/stores.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
libc/string/arc/arcv2/memset.S