aboutsummaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2012-06-19 11:19:16 -0700
committerRichard Henderson <rth@gcc.gnu.org>2012-06-19 11:19:16 -0700
commit84ddb6810c3954096c6f438a3566b6e28220e9d3 (patch)
tree8ebeb7ca05a791fbd1e88e45010bd6c59f97b95b /gcc/machmode.h
parent6bc0ff89a187517f1b11669f7065945395eeafdd (diff)
downloadgcc-84ddb6810c3954096c6f438a3566b6e28220e9d3.zip
gcc-84ddb6810c3954096c6f438a3566b6e28220e9d3.tar.gz
gcc-84ddb6810c3954096c6f438a3566b6e28220e9d3.tar.bz2
Use synth_mult for vector multiplies vs scalar constant
From-SVN: r188786
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index 6137c70..bdaf1be 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -1,6 +1,6 @@
/* Machine mode definitions for GCC; included by rtl.h and tree.h.
Copyright (C) 1991, 1993, 1994, 1996, 1998, 1999, 2000, 2001, 2003,
- 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ 2007, 2008, 2009, 2010, 2012 Free Software Foundation, Inc.
This file is part of GCC.
@@ -179,7 +179,8 @@ extern const unsigned char mode_class[NUM_MACHINE_MODES];
extern CONST_MODE_SIZE unsigned char mode_size[NUM_MACHINE_MODES];
#define GET_MODE_SIZE(MODE) ((unsigned short) mode_size[MODE])
-#define GET_MODE_BITSIZE(MODE) ((unsigned short) (GET_MODE_SIZE (MODE) * BITS_PER_UNIT))
+#define GET_MODE_BITSIZE(MODE) \
+ ((unsigned short) (GET_MODE_SIZE (MODE) * BITS_PER_UNIT))
/* Get the number of value bits of an object of mode MODE. */
extern const unsigned short mode_precision[NUM_MACHINE_MODES];
@@ -205,13 +206,17 @@ extern const unsigned HOST_WIDE_INT mode_mask_array[NUM_MACHINE_MODES];
extern const unsigned char mode_inner[NUM_MACHINE_MODES];
#define GET_MODE_INNER(MODE) ((enum machine_mode) mode_inner[MODE])
-/* Get the size in bytes of the basic parts of an object of mode MODE. */
+/* Get the size in bytes or bites of the basic parts of an
+ object of mode MODE. */
#define GET_MODE_UNIT_SIZE(MODE) \
(GET_MODE_INNER (MODE) == VOIDmode \
? GET_MODE_SIZE (MODE) \
: GET_MODE_SIZE (GET_MODE_INNER (MODE)))
+#define GET_MODE_UNIT_BITSIZE(MODE) \
+ ((unsigned short) (GET_MODE_UNIT_SIZE (MODE) * BITS_PER_UNIT))
+
/* Get the number of units in the object. */
extern const unsigned char mode_nunits[NUM_MACHINE_MODES];