diff options
| author | xmj <xmj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-31 10:18:45 +0000 |
|---|---|---|
| committer | xmj <xmj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-31 10:18:45 +0000 |
| commit | f755482b897b62befd6eb23b9df6487a932c8535 (patch) | |
| tree | 42f4eb03030278fe9c08fec354d246a858d4a5e9 | |
| parent | a656e7c2ec135ce937c2ee2381a1337cf9160e1c (diff) | |
| download | ppe42-gcc-f755482b897b62befd6eb23b9df6487a932c8535.tar.gz ppe42-gcc-f755482b897b62befd6eb23b9df6487a932c8535.zip | |
Update the the macro SHIFT_COUNT_TRUNCATED for loongson.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168364 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/config/mips/mips.c | 4 | ||||
| -rw-r--r-- | gcc/config/mips/mips.h | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ea6658d151..337f70cd15b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-30 Mingjie Xing <mingjie.xing@gmail.com> + + * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change + TARGET_LOONGSON_2EF to TARGET_LOONGSON_VECTORS. + * config/mips/mips.c (mips_shift_truncation_mask): Likewise. + 2010-12-30 Joseph Myers <joseph@codesourcery.com> * config/openbsd.opt: New. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 883747ecba4..a35d66821d5 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -16386,12 +16386,12 @@ void mips_function_profiler (FILE *file) /* Implement TARGET_SHIFT_TRUNCATION_MASK. We want to keep the default behaviour of TARGET_SHIFT_TRUNCATION_MASK for non-vector modes even - when TARGET_LOONGSON_2EF is true. */ + when TARGET_LOONGSON_VECTORS is true. */ static unsigned HOST_WIDE_INT mips_shift_truncation_mask (enum machine_mode mode) { - if (TARGET_LOONGSON_2EF && VECTOR_MODE_P (mode)) + if (TARGET_LOONGSON_VECTORS && VECTOR_MODE_P (mode)) return 0; return GET_MODE_BITSIZE (mode) - 1; diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index f8a1a251dc6..e39aa6c9e4e 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2421,7 +2421,7 @@ typedef struct mips_args { /* Standard MIPS integer shifts truncate the shift amount to the width of the shifted operand. However, Loongson vector shifts do not truncate the shift amount at all. */ -#define SHIFT_COUNT_TRUNCATED (!TARGET_LOONGSON_2EF) +#define SHIFT_COUNT_TRUNCATED (!TARGET_LOONGSON_VECTORS) /* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits is done just by pretending it is already truncated. */ |

