diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-16 16:05:24 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-16 16:05:24 +0000 |
commit | 1c64f409a207fb7ca3d427841be73fbc535b7f0d (patch) | |
tree | b331ab830916c5801383d3e1bea5a644ccddbe3f /lib/builtins/arm/clzdi2.S | |
parent | 011abbbda5a5c9e366d341aafe44bbca74b843c5 (diff) |
compiler-rt: prefer thumb over ARM
When possible, use Thumb or Thumb-2 over ARM instructions. This is particularly
important for pure-Thumb environments (e.g. Windows on ARM). Although, it is
possible to conditionalise this for that target specifically, this is available
on most newer ARM CPUs, and the code remains compatible with older CPUs with no
adverse effects. It therefore feels better to always prefer Thumb when
possible.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/arm/clzdi2.S')
-rw-r--r-- | lib/builtins/arm/clzdi2.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/builtins/arm/clzdi2.S b/lib/builtins/arm/clzdi2.S index 08a18f795..bcea485d9 100644 --- a/lib/builtins/arm/clzdi2.S +++ b/lib/builtins/arm/clzdi2.S @@ -15,6 +15,10 @@ .syntax unified .text +#if __ARM_ARCH_ISA_THUMB == 2 + .thumb +#endif + .p2align 2 DEFINE_COMPILERRT_FUNCTION(__clzdi2) |