diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-19 18:19:16 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-19 18:19:16 +0000 |
commit | 49db198b1dcde317dffdc339b238b689f0cc5a22 (patch) | |
tree | 8ebeb7ca05a791fbd1e88e45010bd6c59f97b95b /gcc/machmode.h | |
parent | 313507bb3b6f7efc391c4718b980d5c4b1d43996 (diff) | |
download | gcc-49db198b1dcde317dffdc339b238b689f0cc5a22.tar.gz |
Use synth_mult for vector multiplies vs scalar constant
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188786 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 6137c70e1e6..bdaf1bee274 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]; |