* expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Nov 2002 09:35:24 +0000 (09:35 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Nov 2002 09:35:24 +0000 (09:35 +0000)
* machmode.h (SCALAR_FLOAT_MODE_P): New macro.

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

gcc/ChangeLog
gcc/expr.c
gcc/machmode.h

index 5181e2e..85f6174 100644 (file)
@@ -1,3 +1,8 @@
+Fri Nov  1 10:33:15 CET 2002  Jan Hubicka  <jh@suse.cz>
+
+       * expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
+       * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
+
 2002-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        PR optimization/6162
index b9c8fb0..e4d9777 100644 (file)
@@ -3092,7 +3092,7 @@ emit_move_insn (x, y)
   else if (CONSTANT_P (y))
     {
       if (optimize
-         && FLOAT_MODE_P (GET_MODE (x))
+         && SCALAR_FLOAT_MODE_P (GET_MODE (x))
          && (last_insn = compress_float_constant (x, y)))
        return last_insn;
 
index c0c8c35..46247d5 100644 (file)
@@ -80,6 +80,10 @@ extern const enum mode_class mode_class[NUM_MACHINE_MODES];
   (GET_MODE_CLASS (MODE) == MODE_INT           \
    || GET_MODE_CLASS (MODE) == MODE_PARTIAL_INT)
 
+/* Nonzero if MODE is a scalar floating point mode.  */
+#define SCALAR_FLOAT_MODE_P(MODE)              \
+  (GET_MODE_CLASS (MODE) == MODE_FLOAT)
+
 /* Get the size in bytes of an object of mode MODE.  */
 
 extern const unsigned char mode_size[NUM_MACHINE_MODES];