From a36b8cb8400c579cc03b9c83d031166f62b9c2a9 Mon Sep 17 00:00:00 2001 From: Jason Eckhardt Date: Sat, 23 Aug 2003 02:46:12 +0000 Subject: [PATCH] i860.c (output_move_double): Don't set latehalf to zero for CONST_INT (since it could be, e.g., -1). 2003-08-22 Jason Eckhardt * config/i860/i860.c (output_move_double): Don't set latehalf to zero for CONST_INT (since it could be, e.g., -1). * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro... (MODSI3_LIBCALL): ...with this one. (UREMSI3_LIBCALL): Replace this macro... (UMODSI3_LIBCALL): ...with this one. From-SVN: r70725 --- gcc/ChangeLog | 12 +++++++++++- gcc/config/i860/i860.c | 5 +++++ gcc/config/i860/i860.h | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae9a8f85b51..86a1995deba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2003-08-22 Jason Eckhardt + + * config/i860/i860.c (output_move_double): Don't set latehalf + to zero for CONST_INT (since it could be, e.g., -1). + + * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro... + (MODSI3_LIBCALL): ...with this one. + (UREMSI3_LIBCALL): Replace this macro... + (UMODSI3_LIBCALL): ...with this one. + 2003-08-22 Jason Eckhardt * config/i860/i860-protos.h (output_delay_insn): Remove prototype. @@ -71,7 +81,7 @@ 2003-08-22 Jason Eckhardt - * config.gcc (i860-*-sysv4*): Add target. + * gcc/config.gcc (i860-*-sysv4*): Add target. * config/i860/i860-protos.h: New. * config/i860/i860.c: New. * config/i860/i860.h: New. diff --git a/gcc/config/i860/i860.c b/gcc/config/i860/i860.c index c7e2811162c..0e171a9a8de 100644 --- a/gcc/config/i860/i860.c +++ b/gcc/config/i860/i860.c @@ -521,8 +521,13 @@ output_move_double (rtx *operands) { if (GET_CODE (operands[1]) == CONST_DOUBLE) split_double (operands[1], &operands[1], &latehalf[1]); +#if 0 else if (CONSTANT_P (operands[1])) latehalf[1] = const0_rtx; +#else + else if (CONSTANT_P (operands[1])) + split_double (operands[1], &operands[1], &latehalf[1]); +#endif } else latehalf[1] = operands[1]; diff --git a/gcc/config/i860/i860.h b/gcc/config/i860/i860.h index 37a88678e59..231cbed45d7 100644 --- a/gcc/config/i860/i860.h +++ b/gcc/config/i860/i860.h @@ -840,8 +840,8 @@ struct cumulative_args { int ints, floats; }; #define DIVSI3_LIBCALL "*.div" #define UDIVSI3_LIBCALL "*.udiv" -#define REMSI3_LIBCALL "*.rem" -#define UREMSI3_LIBCALL "*.urem" +#define MODSI3_LIBCALL "*.rem" +#define UMODSI3_LIBCALL "*.urem" /* Define this as 1 if `char' should by default be signed; else as 0. */ #define DEFAULT_SIGNED_CHAR 1 -- 2.30.2