builtins: make ARM compilation with GAS work again
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 27 Jul 2014 02:01:24 +0000 (02:01 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 27 Jul 2014 02:01:24 +0000 (02:01 +0000)
commit3a2d6a309667461d49e010ea7f96eb8f0cdcf8d9
treeef8077243348b548b6e9a753d03278e82f30d05e
parentb6690c34cfff7ee27acb157c9d7afa3c165baf24
builtins: make ARM compilation with GAS work again

The LLVM IAS seems to accept wide instructions for add and sub in ARM mode even
though it is not permitted.  This uses a macro to ensure that the wide modifier
is only applied when building in THUMB mode.

This repairs building with GCC/GAS in ARM mode.

llvm-svn: 214046
compiler-rt/lib/builtins/arm/udivmodsi4.S
compiler-rt/lib/builtins/arm/udivsi3.S
compiler-rt/lib/builtins/arm/umodsi3.S
compiler-rt/lib/builtins/assembly.h