diff mbox

[MIPS,LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson

Message ID AANLkTi=ELE6QxKvYD5wzZrEB+NjkLpgto1y52eXbuccC@mail.gmail.com
State New
Headers show

Commit Message

Mingjie Xing Dec. 29, 2010, 7:30 a.m. UTC
Hello,

This small patch updates the macro SHIFT_COUNT_TRUNCATED for loongson.
 Is it OK for coming 4.6?

Regards,
Mingjie

2010-12-29  Mingjie Xing  <mingjie.xing@gmail.com>

        * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change
        TARGET_LOONGSON_2EF to TARGET_LOONGSON_VECTORS.
diff mbox

Patch

Index: config/mips/mips.h
===================================================================
--- config/mips/mips.h	(revision 168285)
+++ config/mips/mips.h	(working copy)
@@ -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.  */