* [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson
@ 2010-12-29 10:41 Mingjie Xing
2010-12-30 11:19 ` Mingjie Xing
0 siblings, 1 reply; 4+ messages in thread
From: Mingjie Xing @ 2010-12-29 10:41 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
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.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 649 bytes --]
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. */
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson
2010-12-29 10:41 [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson Mingjie Xing
@ 2010-12-30 11:19 ` Mingjie Xing
2010-12-31 11:13 ` Richard Sandiford
0 siblings, 1 reply; 4+ messages in thread
From: Mingjie Xing @ 2010-12-30 11:19 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
2010/12/29 Mingjie Xing <mingjie.xing@gmail.com>:
> 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.
>
I'm sorry the patch is not complete. I updated it now.
Thanks,
Mingjie
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.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1377 bytes --]
Index: config/mips/mips.c
===================================================================
--- config/mips/mips.c (revision 168285)
+++ config/mips/mips.c (working copy)
@@ -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: 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. */
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson
2010-12-30 11:19 ` Mingjie Xing
@ 2010-12-31 11:13 ` Richard Sandiford
2010-12-31 11:26 ` Mingjie Xing
0 siblings, 1 reply; 4+ messages in thread
From: Richard Sandiford @ 2010-12-31 11:13 UTC (permalink / raw)
To: Mingjie Xing; +Cc: gcc-patches
Mingjie Xing <mingjie.xing@gmail.com> writes:
> 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.
OK for 4.6, thanks.
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson
2010-12-31 11:13 ` Richard Sandiford
@ 2010-12-31 11:26 ` Mingjie Xing
0 siblings, 0 replies; 4+ messages in thread
From: Mingjie Xing @ 2010-12-31 11:26 UTC (permalink / raw)
To: Mingjie Xing, gcc-patches, rdsandiford
2010/12/31 Richard Sandiford <rdsandiford@googlemail.com>:
> Mingjie Xing <mingjie.xing@gmail.com> writes:
>> 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.
>
> OK for 4.6, thanks.
>
> Richard
>
Committed revision 168364.
Happy New Year(元旦快乐)
Mingjie
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-31 10:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-29 10:41 [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson Mingjie Xing
2010-12-30 11:19 ` Mingjie Xing
2010-12-31 11:13 ` Richard Sandiford
2010-12-31 11:26 ` Mingjie Xing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).