summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/arm/aeabi_memset.S
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-05-12 15:23:37 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-05-12 15:23:37 +0000
commit310874ae3c699a513876e1e250cef2ea4beb170d (patch)
tree311c490a6d8d5636e185e127c73d629f5d4d140c /compiler-rt/lib/builtins/arm/aeabi_memset.S
parent3f7878ac5f4ed6ff69269199358181017671ba90 (diff)
downloadbcm5719-llvm-310874ae3c699a513876e1e250cef2ea4beb170d.tar.gz
bcm5719-llvm-310874ae3c699a513876e1e250cef2ea4beb170d.zip
[CompilerRT] use .p2align, .balign instead of .align
The .align statements in ARM assembly routines is actually meant to be a power of 2 alignment (e.g. .align 2 == 4 byte alignment, not 2). Switch to using .p2align. .p2align is guaranteed to be a power-of-two alignment always and much more explicit. The .align in the case of x86_64 is byte alignment, use .balign instead of .align. llvm-svn: 208578
Diffstat (limited to 'compiler-rt/lib/builtins/arm/aeabi_memset.S')
-rw-r--r--compiler-rt/lib/builtins/arm/aeabi_memset.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/arm/aeabi_memset.S b/compiler-rt/lib/builtins/arm/aeabi_memset.S
index 43c085e2665..c8b49c7809a 100644
--- a/compiler-rt/lib/builtins/arm/aeabi_memset.S
+++ b/compiler-rt/lib/builtins/arm/aeabi_memset.S
@@ -12,7 +12,7 @@
// void __aeabi_memset(void *dest, size_t n, int c) { memset(dest, c, n); }
// void __aeabi_memclr(void *dest, size_t n) { __aeabi_memset(dest, n, 0); }
- .align 2
+ .p2align 2
DEFINE_COMPILERRT_FUNCTION(__aeabi_memset)
mov r3, r1
mov r1, r2
OpenPOWER on IntegriCloud