Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-12 Thread Richard Sandiford
Richard Henderson writes: > On 12/11/2011 04:50 AM, Richard Sandiford wrote: >> [Mingjie, please could you help with the Loongson question near the end?] > > Actually, can you tell me how to test these abi combinations? I keep > trying to use mips-sim or mips64-sim and get linker errors complaini

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-11 Thread Hans-Peter Nilsson
On Sun, 11 Dec 2011, Richard Sandiford wrote: > Hans-Peter Nilsson writes: > > Please also consider incrementing __mips_loongson_vector_rev > For avoidance of doubt, that only applies to the latter ("as H-P > suggests") option. The patch as posted keeps the public interface > the same. Correct;

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-11 Thread Richard Henderson
On 12/11/2011 04:50 AM, Richard Sandiford wrote: > [Mingjie, please could you help with the Loongson question near the end?] Actually, can you tell me how to test these abi combinations? I keep trying to use mips-sim or mips64-sim and get linker errors complaining of abi combinations. > L

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-11 Thread Richard Sandiford
Hans-Peter Nilsson writes: > On Sun, 11 Dec 2011, Richard Sandiford wrote: >> [Mingjie, please could you help with the Loongson question near the end?] > >> As H-P mentioned, this changes the __builtin_* interface for the PSHUFH >> intrinsics. These intrinsics are supposed to be used via the inli

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-11 Thread Hans-Peter Nilsson
On Sun, 11 Dec 2011, Richard Sandiford wrote: > [Mingjie, please could you help with the Loongson question near the end?] > As H-P mentioned, this changes the __builtin_* interface for the PSHUFH > intrinsics. These intrinsics are supposed to be used via the inline > wrappers in loongson.h, so we

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-11 Thread Richard Sandiford
[Mingjie, please could you help with the Loongson question near the end?] Richard Henderson writes: > @@ -89,61 +89,102 @@ >DONE; > }) > > -; pul.ps - Pair Upper Lower > -(define_insn "mips_pul_ps" > +(define_insn "vec_perm_const_ps" >[(set (match_operand:V2SF 0 "register_operand" "=f"

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-09 Thread Richard Henderson
On 12/08/2011 10:08 PM, Hans-Peter Nilsson wrote: > On Thu, 8 Dec 2011, Richard Henderson wrote: >> diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c >> index d3fd709..f1c3665 100644 >> --- a/gcc/config/mips/mips.c >> +++ b/gcc/config/mips/mips.c > >> @@ -13021,8 +13015,8 @@ static cons

Re: [PATCH 5/6] mips: Implement vec_perm_const.

2011-12-08 Thread Hans-Peter Nilsson
On Thu, 8 Dec 2011, Richard Henderson wrote: > diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c > index d3fd709..f1c3665 100644 > --- a/gcc/config/mips/mips.c > +++ b/gcc/config/mips/mips.c > @@ -13021,8 +13015,8 @@ static const struct mips_builtin_description > mips_builtins[] = { >

[PATCH 5/6] mips: Implement vec_perm_const.

2011-12-08 Thread Richard Henderson
--- gcc/config/mips/loongson.md| 24 +++- gcc/config/mips/mips-modes.def |1 + gcc/config/mips/mips-protos.h |1 + gcc/config/mips/mips-ps-3d.md | 145 ++ gcc/config/mips/mips.c | 266 ++-- gcc/config/mips/predicates