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.
Details
Details
- Reviewers
t.p.northover abdulras joerg - Group Reviewers
deleted
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Saleem,
Couple of things here.
I'm worried about using .thumb on CPUs that only support Thumb1. The chances of all the (written for ARM) instructions assembling are fairly small.
I also think we should probably use the ACLE predefines if possible (__ARM_ARCH_ISA_THUMB == 2 in this case). That may need a Clang patch though...
Cheers.
Tim.