[Builtins] Use 4 byte alignment for __aeabi_memclr.
authorManoj Gupta <manojgupta@google.com>
Tue, 26 Sep 2017 22:37:08 +0000 (22:37 +0000)
committerManoj Gupta <manojgupta@google.com>
Tue, 26 Sep 2017 22:37:08 +0000 (22:37 +0000)
Summary:
Align __aeabi_memclr to 4 bytes. All other ARM functions are already aligned to
4-bytes in compiler-rt.
(Split off from review D38227)

Reviewers: compnerd, peter.smith, srhines, weimingz, rengolin, kristof.beyls

Reviewed By: compnerd

Subscribers: aemerson, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D38271

llvm-svn: 314255

compiler-rt/lib/builtins/arm/aeabi_memset.S

index 633f592..b8022d9 100644 (file)
@@ -24,6 +24,7 @@ END_COMPILERRT_FUNCTION(__aeabi_memset)
 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memset4, __aeabi_memset)
 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memset8, __aeabi_memset)
 
+        .p2align 2
 DEFINE_COMPILERRT_FUNCTION(__aeabi_memclr)
         mov     r2, r1
         movs    r1, #0