summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-24 02:50:02 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-24 02:50:02 +0000
commitba5929043111329b2e2136a7f65ff9adf4b285bc (patch)
tree6553b3a7d61573e66048e19c1859f5e43ef79c03 /gcc/machmode.h
parentac07ba4db5b8d8ef1d6ce412a35d594d67887dd0 (diff)
downloadgcc-ba5929043111329b2e2136a7f65ff9adf4b285bc.tar.gz
* machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
* optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve formatting. (expand_twoval_unop): Likewise. (widen_clz): Likewise. (expand_parity): Likewise. (expand_unop): Likewise. (emit_cmp_and_jmp_insn_1): Likewise. (prepare_float_lib_cmp): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index 7f5633c1a04..1ba5963326c 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -76,6 +76,12 @@ extern const unsigned char mode_class[NUM_MACHINE_MODES];
#define SCALAR_FLOAT_MODE_P(MODE) \
(GET_MODE_CLASS (MODE) == MODE_FLOAT)
+/* Nonzero if CLASS modes can be widened. */
+#define CLASS_HAS_WIDER_MODES_P(CLASS) \
+ (CLASS == MODE_INT \
+ || CLASS == MODE_FLOAT \
+ || CLASS == MODE_COMPLEX_FLOAT)
+
/* Get the size in bytes and bits of an object of mode MODE. */
extern CONST_MODE_SIZE unsigned char mode_size[NUM_MACHINE_MODES];