aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-01-19 17:07:04 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-01-19 17:07:04 -0800
commit4be7c28fddff322a9634a25ddf0b26b70115ce62 (patch)
tree0b990bd299b6ccdf3f2789a0aa35a61f1eb718cd
parent0cda619493a92dc8b0f9147e1139e1398e00c75a (diff)
downloadgcc-4be7c28fddff322a9634a25ddf0b26b70115ce62.zip
gcc-4be7c28fddff322a9634a25ddf0b26b70115ce62.tar.gz
gcc-4be7c28fddff322a9634a25ddf0b26b70115ce62.tar.bz2
(cmpdi2, ucmpdi2): comparison result type is now word_mode.
From-SVN: r3288
-rw-r--r--gcc/libgcc2.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index f600297..ce6d313 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -62,6 +62,16 @@ typedef float XFtype __attribute__ ((mode (XF)));
typedef float TFtype __attribute__ ((mode (TF)));
#endif
+#if BITS_PER_WORD==16
+typedef int word_type __attribute__ ((mode (HI)));
+#endif
+#if BITS_PER_WORD==32
+typedef int word_type __attribute__ ((mode (SI)));
+#endif
+#if BITS_PER_WORD==64
+typedef int word_type __attribute__ ((mode (DI)));
+#endif
+
/* Make sure that we don't accidentally use any normal C language built-in
type names in the first part of this file. Instead we want to use *only*
the type names defined above. The following macro definitions insure
@@ -708,7 +718,7 @@ __udivdi3 (n, d)
#endif
#ifdef L_cmpdi2
-SItype
+word_type
__cmpdi2 (a, b)
DItype a, b;
{
@@ -729,7 +739,7 @@ __cmpdi2 (a, b)
#endif
#ifdef L_ucmpdi2
-SItype
+word_type
__ucmpdi2 (a, b)
DItype a, b;
{