Add the __ARM_ARCH_EXT_IDIV__ predefine. It is set to 1 if we have hardware divide...
authorSilviu Baranga <silviu.baranga@arm.com>
Mon, 21 Oct 2013 10:54:53 +0000 (10:54 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Mon, 21 Oct 2013 10:54:53 +0000 (10:54 +0000)
commitf9671dd09d0e58cf98e8339a701c1a9283565c36
treea8ebac6e987f2daacdf3f297135bebdb232fba36
parent6652921d5aba1e5c158212d288d2b7d6e53386c8
Add the __ARM_ARCH_EXT_IDIV__ predefine. It is set to 1 if we have hardware divide in the mode that we are compiling in (depending on the target features), not defined if we don't. Should be compatible with the GCC conterpart. Also adding a -hwdiv option to overide the default behavior.

llvm-svn: 193074
clang/docs/UsersManual.rst
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets.cpp
clang/lib/Driver/Tools.cpp
clang/test/Driver/arm-hwdiv.c [new file with mode: 0644]
clang/test/Preprocessor/init.c