summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/arm/modsi3.S
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-06-16 16:05:24 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-06-16 16:05:24 +0000
commit1b8f1a4430816011217777b2c115c308cc392568 (patch)
treeba77fd4e0c2a432115e907acab5692a793d707f6 /compiler-rt/lib/builtins/arm/modsi3.S
parent78e1ca692bf07944c5d35dabb58be10bae640a51 (diff)
downloadbcm5719-llvm-1b8f1a4430816011217777b2c115c308cc392568.tar.gz
bcm5719-llvm-1b8f1a4430816011217777b2c115c308cc392568.zip
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
Diffstat (limited to 'compiler-rt/lib/builtins/arm/modsi3.S')
-rw-r--r--compiler-rt/lib/builtins/arm/modsi3.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/arm/modsi3.S b/compiler-rt/lib/builtins/arm/modsi3.S
index 4be4a22cbeb..7ed305ea6e0 100644
--- a/compiler-rt/lib/builtins/arm/modsi3.S
+++ b/compiler-rt/lib/builtins/arm/modsi3.S
@@ -22,6 +22,9 @@
.syntax unified
.text
+#if __ARM_ARCH_ISA_THUMB == 2
+ .thumb
+#endif
.p2align 3
DEFINE_COMPILERRT_FUNCTION(__modsi3)
OpenPOWER on IntegriCloud