summaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-08 19:58:58 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-08 19:58:58 +0000
commitdcfaf1e3413edfc7500232ee8c71d01506a5178e (patch)
tree0174798cd5349ae20f4ef5b7ba3bc91d36d184cd /gcc/longlong.h
parent0bf9b699ffb33322acd369fdb4d96efee223de08 (diff)
downloadgcc-dcfaf1e3413edfc7500232ee8c71d01506a5178e.tar.gz
+2003-08-08 Bernardo Innocenti <bernie@develer.com>
+ + PR target/9697 + PR target/11777 + * longlong.h (count_leading_zeros): Exclude on __mcpu32__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r--gcc/longlong.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index 72ce3777991..ebf3591151a 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -482,11 +482,13 @@ UDItype __umulsidi3 (USItype, USItype);
#endif /* not mcf5200 */
#endif /* not mc68020 */
-/* The '020, '030, '040 and '060 have bitfield insns. */
-#if defined (__mc68020__) || defined(mc68020) \
- || defined(__mc68030__) || defined(mc68030) \
- || defined(__mc68040__) || defined(mc68040) \
- || defined(__mc68060__) || defined(mc68060)
+/* The '020, '030, '040 and '060 have bitfield insns.
+ cpu32 disguises as a 68020, but lacks them. */
+#if ( defined (__mc68020__) || defined(mc68020) \
+ || defined(__mc68030__) || defined(mc68030) \
+ || defined(__mc68040__) || defined(mc68040) \
+ || defined(__mc68060__) || defined(mc68060) ) \
+ && !defined(__mcpu32__)
#define count_leading_zeros(count, x) \
__asm__ ("bfffo %1{%b2:%b2},%0" \
: "=d" ((USItype) (count)) \