Richard Henderson writes:
> On 12/22/2011 12:05 PM, Richard Sandiford wrote:
>> Probably one of those where you had to stop following the rathole,
>> but could this be generalised to handle pairs in which perm[1]
>> == perm[0] + 8? Something like:
>>
>>> + if (!(TARGET_HARD_FLOAT && TARGET_LOON
On 12/22/2011 12:05 PM, Richard Sandiford wrote:
> Probably one of those where you had to stop following the rathole,
> but could this be generalised to handle pairs in which perm[1]
> == perm[0] + 8? Something like:
>
>> + if (!(TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS))
>> +return fals
Richard Henderson writes:
> +/* Recognize broadcast patterns for the Loongson. */
> +
> +static bool
> +mips_expand_vpc_loongson_bcast (struct expand_vec_perm_d *d)
> +{
> + unsigned i, elt;
> + rtx t0, t1;
> +
> + if (!(TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS))
> +return false;
> +
---
gcc/config/mips/loongson.md | 26 +
gcc/config/mips/mips-ps-3d.md | 14 +--
gcc/config/mips/mips.c| 226 -
3 files changed, 233 insertions(+), 33 deletions(-)
diff --git a/gcc/config/mips/loongson.md b/gcc/config/mips/loongson.md
inde