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)
commit28a3b86b069c05418234bd16890843ca400b8639
tree718794189966c82ce4ea2a45e34788714b944820
parenta9049ea36848df64e26d3c11a11dd393fb469e79
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

llvm-svn: 230651
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/test/CodeGen/ARM/krait-cpu-div-attribute.ll [new file with mode: 0644]