]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000/test: Add emulated gather test case
authorKewen Lin <linkw@linux.ibm.com>
Mon, 29 Nov 2021 01:59:59 +0000 (19:59 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Mon, 29 Nov 2021 01:59:59 +0000 (19:59 -0600)
commit300dbea12693e365c89971527ca14cb0242def64
treee63cc02d5be7635d07df83bc936919071eb7b7cf
parent68332ab7ec58a89660db82569c5f4c2251d59741
rs6000/test: Add emulated gather test case

As verified, the emulated gather capability of vectorizer
(r12-2733) can help to speed up SPEC2017 510.parest_r on
Power8/9/10 by 5% ~ 9% with option sets Ofast unroll and
Ofast lto.

This patch is to add a test case similar to the one in i386
to add testing coverage for 510.parest_r hotspots.

btw, different from the one in i386, this uses unsigned int
as INDEXTYPE since the unpack support for unsigned int
(r12-3134) also matters for the hotspots vectorization.

gcc/testsuite/ChangeLog:

* gcc.target/powerpc/vect-gather-1.c: New test.
gcc/testsuite/gcc.target/powerpc/vect-gather-1.c [new file with mode: 0644]