summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/arm/clzdi2.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/clzdi2.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/clzdi2.S')
-rw-r--r--compiler-rt/lib/builtins/arm/clzdi2.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/arm/clzdi2.S b/compiler-rt/lib/builtins/arm/clzdi2.S
index 33284cd3af2..841ba7ba503 100644
--- a/compiler-rt/lib/builtins/arm/clzdi2.S
+++ b/compiler-rt/lib/builtins/arm/clzdi2.S
@@ -16,7 +16,7 @@
.syntax unified
.text
- .align 2
+ .p2align 2
DEFINE_COMPILERRT_FUNCTION(__clzdi2)
#ifdef __ARM_FEATURE_CLZ
#ifdef __ARMEB__
OpenPOWER on IntegriCloud