OSDN Git Service

* i386.h (CONST_COSTS): set cost of constants representable in
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jun 2001 19:53:59 +0000 (19:53 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jun 2001 19:53:59 +0000 (19:53 +0000)
immediate fields to 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43045 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.h

index 653ecc3..9c9c387 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jun  8 21:52:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
+
+       * i386.h (CONST_COSTS): set cost of constants representable in
+       immediate fields to 0.
+
 Fri Jun  8 21:34:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
 
        * function.c (diddle_return_value): Kill code to determine
index f1f8bef..6803a0a 100644 (file)
@@ -2370,22 +2370,21 @@ while (0)
 
 #define CONST_COSTS(RTX,CODE,OUTER_CODE) \
   case CONST_INT:                                              \
-    return (unsigned) INTVAL (RTX) < 256 ? 0 : 1;              \
   case CONST:                                                  \
   case LABEL_REF:                                              \
   case SYMBOL_REF:                                             \
-    return flag_pic && SYMBOLIC_CONST (RTX) ? 2 : 1;           \
+    return flag_pic && SYMBOLIC_CONST (RTX) ? 1 : 0;           \
                                                                \
   case CONST_DOUBLE:                                           \
     {                                                          \
       int code;                                                        \
       if (GET_MODE (RTX) == VOIDmode)                          \
-       return 2;                                               \
+       return 0;                                               \
                                                                \
       code = standard_80387_constant_p (RTX);                  \
-      return code == 1 ? 0 :                                   \
-            code == 2 ? 1 :                                    \
-                        2;                                     \
+      return code == 1 ? 1 :                                   \
+            code == 2 ? 2 :                                    \
+                        3;                                     \
     }
 
 /* Delete the definition here when TOPLEVEL_COSTS_N_INSNS gets added to cse.c */