summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/arm/aeabi_idivmod.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_idivmod.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_idivmod.S')
-rw-r--r--compiler-rt/lib/builtins/arm/aeabi_idivmod.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/arm/aeabi_idivmod.S b/compiler-rt/lib/builtins/arm/aeabi_idivmod.S
index ac5dfcc22be..384add38279 100644
--- a/compiler-rt/lib/builtins/arm/aeabi_idivmod.S
+++ b/compiler-rt/lib/builtins/arm/aeabi_idivmod.S
@@ -16,7 +16,7 @@
// }
.syntax unified
- .align 2
+ .p2align 2
DEFINE_COMPILERRT_FUNCTION(__aeabi_idivmod)
push { lr }
sub sp, sp, #4
OpenPOWER on IntegriCloud