compiler-rt: prefer thumb over ARM
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 16 Jun 2014 16:05:24 +0000 (16:05 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 16 Jun 2014 16:05:24 +0000 (16:05 +0000)
commit1b8f1a4430816011217777b2c115c308cc392568
treeba77fd4e0c2a432115e907acab5692a793d707f6
parent78e1ca692bf07944c5d35dabb58be10bae640a51
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.

llvm-svn: 211032
compiler-rt/lib/builtins/arm/bswapdi2.S
compiler-rt/lib/builtins/arm/bswapsi2.S
compiler-rt/lib/builtins/arm/clzdi2.S
compiler-rt/lib/builtins/arm/clzsi2.S
compiler-rt/lib/builtins/arm/divmodsi4.S
compiler-rt/lib/builtins/arm/divsi3.S
compiler-rt/lib/builtins/arm/modsi3.S
compiler-rt/lib/builtins/arm/udivmodsi4.S
compiler-rt/lib/builtins/arm/udivsi3.S
compiler-rt/lib/builtins/arm/umodsi3.S