diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-12 15:23:37 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-12 15:23:37 +0000 |
commit | eee6d0a714aef5d40279f9f4608efc7abffa8c76 (patch) | |
tree | 2eafba93d6b7b4e0c389b8803a3d5c4bc83e9d52 /lib/builtins/i386/lshrdi3.S | |
parent | 1d5cc7bed35dfcb6932e587157b50f0cf6c19175 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/i386/lshrdi3.S')
-rw-r--r-- | lib/builtins/i386/lshrdi3.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/builtins/i386/lshrdi3.S b/lib/builtins/i386/lshrdi3.S index dcfc33169..b80f11a38 100644 --- a/lib/builtins/i386/lshrdi3.S +++ b/lib/builtins/i386/lshrdi3.S @@ -16,7 +16,7 @@ #ifdef __SSE2__ .text -.align 4 +.balign 4 DEFINE_COMPILERRT_FUNCTION(__lshrdi3) movd 12(%esp), %xmm2 // Load count #ifndef TRUST_CALLERS_USE_64_BIT_STORES @@ -36,7 +36,7 @@ END_COMPILERRT_FUNCTION(__lshrdi3) #else // Use GPRs instead of SSE2 instructions, if they aren't available. .text -.align 4 +.balign 4 DEFINE_COMPILERRT_FUNCTION(__lshrdi3) movl 12(%esp), %ecx // Load count movl 8(%esp), %edx // Load high |