On 12/17/2015 10:51 AM, Robin Dapp wrote:
> 2015-12-15 Robin Dapp
>
> * config/s390/predicates.md: Change and rename
> constm1_operand to all_ones_operand
> * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand
> * config/s390/vector.md: Likewise
Applied. Thanks
On 12/15/2015 10:53 AM, Robin Dapp wrote:
> gcc/ChangeLog:
>
> 2015-12-15 Robin Dapp
>
> * config/s390/s390.c (s390_expand_vcond): Convert vector
> conditional into shift.
> * config/s390/vector.md: Change operand predicate.
>
> gcc/testsuite/ChangeLog:
>
> 2015-12-15
Hi,
the attached patch renames the constm1_operand predicate to
all_ones_operand and introduces a check for int mode.
It should be applied on top of the last patch ([Patch] S/390: Simplify
vector conditionals).
Regtested on s390.
Regards
Robin
gcc/ChangeLog:
2015-12-15 Robin Dapp
Hi,
the attached patch simplifies vector conditional statements like
v < 0 ? -1 : 0 into v >> 31. The code is largely based on the x86
implementation of this feature by Jakub Jelinek. In future, (and if
useful for more backends) it could make sense to implement this directly
at tree-level.
Bootst