This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][2/3] Vectorize inductions that are live after the loop
- From: Alan Hayward <alan dot hayward at arm dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 07 Jun 2016 09:51:21 +0100
- Subject: Re: [PATCH][2/3] Vectorize inductions that are live after the loop
- Authentication-results: sourceware.org; auth=none
- References: <D36DCD5A dot E30F%alan dot hayward at arm dot com> <CAFiYyc1zx4JttqgVRCq6auscp9pfOBsk8Qbw33x_rrX0-eJ_dg at mail dot gmail dot com> <D36E0ED3 dot E559%alan dot hayward at arm dot com> <CAFiYyc03G4+k8MuDyy7kn7EZHT5eW8Kh29ryejHXTNJjbJ80HA at mail dot gmail dot com> <D373738B dot EBB3%alan dot hayward at arm dot com> <CAFiYyc3XRYPsjmbZD4FArEvhCXBOJ9TfjMP0xa+LtgRnWhZ7QA at mail dot gmail dot com> <D3761878 dot F3DC%alan dot hayward at arm dot com> <87eg8b6gtl dot fsf at linux-m68k dot org>
On 05/06/2016 12:00, "Andreas Schwab" <schwab@linux-m68k.org> wrote:
>Alan Hayward <alan.hayward@arm.com> writes:
>
>> * gcc.dg/vect/vect-live-2.c: New test.
>
>This test fails on powerpc64 (with -m64, but not with -m32):
>
>$ grep 'vectorized.*loops' ./vect-live-2.c.149t.vect
>../gcc/testsuite/gcc.dg/vect/vect-live-2.c:10:1: note: vectorized 0 loops
>in function.
>../gcc/testsuite/gcc.dg/vect/vect-live-2.c:29:1: note: vectorized 0 loops
>in function.
>
>
"note: not vectorized: relevant stmt not supported: _1 = (long unsigned
int) j_24;"
This is failing because power does not support vectorising a cast from int
to long.
(It works on power 32bit because longs are 32bit and therefore no need to
cast).
Can someone please suggest a target-supports define (or another method) I
can use to
disable this test for power 64bit (but not 32bit) ?
I tried using vect_multiple_sizes, but that will also disable the test on
x86 without
avx.
Thanks,
Alan.