summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-11-01 10:35:24 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2002-11-01 09:35:24 +0000
commit075fc17aa50627c58a902aca1b27a74a7c7f7311 (patch)
treec1cd461ba0c1deb1040428de253951d45bcbf009
parentcfcfd176a15bf3850a4c915f117713d01cd3427b (diff)
downloadgcc-075fc17aa50627c58a902aca1b27a74a7c7f7311.tar.gz
expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P
* expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P * machmode.h (SCALAR_FLOAT_MODE_P): New macro. From-SVN: r58712
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c2
-rw-r--r--gcc/machmode.h4
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5181e2eb2ce..85f6174594a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/expr.c b/gcc/expr.c
index b9c8fb0b962..e4d97772cc8 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -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;
diff --git a/gcc/machmode.h b/gcc/machmode.h
index c0c8c35f8d4..46247d57343 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -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];