Update the the macro SHIFT_COUNT_TRUNCATED for loongson.
authorMingjie Xing <mingjie.xing@gmail.com>
Fri, 31 Dec 2010 10:18:45 +0000 (10:18 +0000)
committerMingjie Xing <xmj@gcc.gnu.org>
Fri, 31 Dec 2010 10:18:45 +0000 (10:18 +0000)
From-SVN: r168364

gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h

index 1ea6658d15139e32b778c528fedc612ae80d2297..337f70cd15b3d1aa7cc1af7889477926f84ea483 100644 (file)
@@ -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.
index 883747ecba4950c2a54bfcb4edba919e1d4717b3..a35d66821d562e97a7b959527f74e084689a061d 100644 (file)
@@ -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;
index f8a1a251dc68c100ceb0d959226085ea570cccc5..e39aa6c9e4e15841d1f842540fe3d33e8b29585d 100644 (file)
@@ -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.  */