Re: [PATCH] Simplify vector compare-not-select sequence

2015-08-04 Thread Bill Schmidt
Thanks for verifying! Also verified it still works on powerpc64le-unknown-linux-gnu. Committed as obvious. Thanks, Bill 2015-08-04 Bill Schmidt * gcc.target/powerpc/vec-cmp-sel.c: Avoid test failure on machines without VSX an Power8 vector support. Index: gcc/testsuite/gcc

Re: [PATCH] Simplify vector compare-not-select sequence

2015-08-03 Thread Andreas Schwab
Bill Schmidt writes: > Index: gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c > === > --- gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c(revision 226505) > +++ gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c(working copy) > @@

Re: [PATCH] Simplify vector compare-not-select sequence

2015-08-03 Thread Bill Schmidt
On Sun, 2015-08-02 at 12:18 +0200, Andreas Schwab wrote: > Bill Schmidt writes: > > > * gcc.target/powerpc/vec-cmp-sel.c: New test. > > FAIL: gcc.target/powerpc/vec-cmp-sel.c (test for excess errors) > Excess errors: > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:14

Re: [PATCH] Simplify vector compare-not-select sequence

2015-08-02 Thread Andreas Schwab
Bill Schmidt writes: > * gcc.target/powerpc/vec-cmp-sel.c: New test. FAIL: gcc.target/powerpc/vec-cmp-sel.c (test for excess errors) Excess errors: /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:14:1: error: use of 'long long' in AltiVec types is invalid without -m

Re: [PATCH] Simplify vector compare-not-select sequence

2015-07-08 Thread Jeff Law
On 07/06/2015 07:41 AM, Bill Schmidt wrote: Hi, Due to specifics of the POWER architecture, some forms of a vector compare followed by a vector select are represented in RTL as a compare, followed by a logical NOT, followed by the select. This tends to end up generating an extra instruction. T

[PATCH] Simplify vector compare-not-select sequence

2015-07-06 Thread Bill Schmidt
Hi, Due to specifics of the POWER architecture, some forms of a vector compare followed by a vector select are represented in RTL as a compare, followed by a logical NOT, followed by the select. This tends to end up generating an extra instruction. This patch adds a case to simplify-rtx.c to rem