summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArtyom Skrobov <Artyom.Skrobov@arm.com>2014-01-20 10:18:42 +0000
committerArtyom Skrobov <Artyom.Skrobov@arm.com>2014-01-20 10:18:42 +0000
commit3767c7446edea95277509477a9bb3048ef2e0b95 (patch)
treec554337f8861507e37004059d340af9990f73b2c /include
parent70662820ee77209b4e34044e7d28c9207f759af6 (diff)
[ARM] Do not generate Tag_DIV_use=AllowDIVExt when hardware div is non-optional: it should have the default value of AllowDIVIfExists
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/ARMBuildAttributes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/ARMBuildAttributes.h b/include/llvm/Support/ARMBuildAttributes.h
index ef52ffba085..69732fc041e 100644
--- a/include/llvm/Support/ARMBuildAttributes.h
+++ b/include/llvm/Support/ARMBuildAttributes.h
@@ -168,9 +168,11 @@ enum {
AllowMP = 1, // Allow use of MP extensions
// Tag_DIV_use, (=44), uleb128
+ // Note: AllowDIVExt must be emitted if and only if the permission to use
+ // hardware divide cannot be conveyed using AllowDIVIfExists or DisallowDIV
AllowDIVIfExists = 0, // Allow hardware divide if available in arch, or no
// info exists.
- DisallowDIV = 1, // Hardware divide explicitly disallowed
+ DisallowDIV = 1, // Hardware divide explicitly disallowed.
AllowDIVExt = 2, // Allow hardware divide as optional architecture
// extension above the base arch specified by
// Tag_CPU_arch and Tag_CPU_arch_profile.