summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-11-24 02:50:02 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-11-24 13:50:02 +1100
commit86556d87a3fd822866151722214389b4d3f72dc9 (patch)
tree6553b3a7d61573e66048e19c1859f5e43ef79c03 /gcc/machmode.h
parent94044657e9a3b514a5b38e71156290a4c7d2a474 (diff)
downloadgcc-86556d87a3fd822866151722214389b4d3f72dc9.tar.gz
machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
* 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. From-SVN: r107450
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];