[PATCH] D31220: [builtins][ARM] Select correct code fragments when compiling for Thumb1/Thum2/ARM ISA
Weiming Zhao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 16:10:49 PDT 2017
weimingz created this revision.
Herald added a subscriber: aemerson.
Value of __ARM_ARCH_ISA_THUMB isn't based on the actual compilation
mode (-mthumb, -marm), it reflect's capability of given CPU.
Due to this:
•use tbumb and thumb2 insteand of __ARM_ARCH_ISA_THUMB
•use '.thumb' directive consistently in all affected files
•decorate all thumb functions using DEFINE_COMPILERRT_THUMB_FUNCTION()
(This is based off Michal's patch https://reviews.llvm.org/D30938)
https://reviews.llvm.org/D31220
Files:
lib/builtins/arm/aeabi_cdcmp.S
lib/builtins/arm/aeabi_cfcmp.S
lib/builtins/arm/aeabi_idivmod.S
lib/builtins/arm/aeabi_uidivmod.S
lib/builtins/arm/bswapdi2.S
lib/builtins/arm/bswapsi2.S
lib/builtins/arm/clzdi2.S
lib/builtins/arm/clzsi2.S
lib/builtins/arm/comparesf2.S
lib/builtins/arm/divmodsi4.S
lib/builtins/arm/divsi3.S
lib/builtins/arm/modsi3.S
lib/builtins/arm/udivmodsi4.S
lib/builtins/arm/udivsi3.S
lib/builtins/arm/umodsi3.S
lib/builtins/assembly.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31220.92566.patch
Type: text/x-patch
Size: 19872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170321/111e1fc8/attachment.bin>
More information about the llvm-commits
mailing list