diff options
author | clyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-27 12:17:05 +0000 |
---|---|---|
committer | clyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-27 12:17:05 +0000 |
commit | b214253d2f5e10aef0ffd0204f07770496ac0984 (patch) | |
tree | 2bce9a61019a73e1ac15aec945ce47ae5c2c3b72 /gcc/doc | |
parent | cb06ace2241e2aa8a65ccbac3cb54c1e6a263cc7 (diff) | |
download | gcc-b214253d2f5e10aef0ffd0204f07770496ac0984.tar.gz |
2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
gcc/
* doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
* doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
libgcc/
* libgcc2.c (__udivmoddi4): Define new implementation when
TARGET_HAS_NO_HW_DIVIDE is defined, for processors without any
divide instructions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205444 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 8 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 966576fe721..68b59b9975b 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5365,6 +5365,14 @@ If this macro evaluates to @code{false} the comparison functions return in @file{libgcc.a}, you do not need to define this macro. @end defmac +@defmac TARGET_HAS_NO_HW_DIVIDE +This macro should be defined if the target has no hardware divide +instructions. If this macro is defined, GCC will use an algorithm which +make use of simple logical and arithmetic operations for 64-bit +division. If the macro is not defined, GCC will use an algorithm which +make use of a 64-bit by 32-bit divide primitive. +@end defmac + @cindex @code{EDOM}, implicit usage @findex matherr @defmac TARGET_EDOM diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 63f4edb3a43..1bb3806c5df 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -4205,6 +4205,14 @@ If this macro evaluates to @code{false} the comparison functions return in @file{libgcc.a}, you do not need to define this macro. @end defmac +@defmac TARGET_HAS_NO_HW_DIVIDE +This macro should be defined if the target has no hardware divide +instructions. If this macro is defined, GCC will use an algorithm which +make use of simple logical and arithmetic operations for 64-bit +division. If the macro is not defined, GCC will use an algorithm which +make use of a 64-bit by 32-bit divide primitive. +@end defmac + @cindex @code{EDOM}, implicit usage @findex matherr @defmac TARGET_EDOM |