Use ".arch_extension" ARM directive to support hwdiv on krait
authorSumanth Gundapaneni <sgundapa@codeaurora.org>
Thu, 26 Feb 2015 18:08:41 +0000 (18:08 +0000)
committerSumanth Gundapaneni <sgundapa@codeaurora.org>
Thu, 26 Feb 2015 18:08:41 +0000 (18:08 +0000)
commitadaebc8b56cf00ffab1133f54bf5382bc9f12371
tree1516b174b31962a2ee71d87560bbacba4a5311af
parent7c0f2ab3dbcd426964bddb214b8a69f2bb0c5b19
Use ".arch_extension" ARM directive to support hwdiv on krait

In case of "krait" CPU, asm printer doesn't emit any ".cpu" so the
features bits are not computed. This patch lets the asm printer
emit ".cpu cortex-a9" directive for krait and the hwdiv feature is
enabled through ".arch_extension". In short, krait is treated
as "cortex-a9" with hwdiv. We can not emit ".krait" as CPU since
it is not supported bu GNU GAS yet

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230651 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
test/CodeGen/ARM/krait-cpu-div-attribute.ll [new file with mode: 0644]